I need to light a LED during a sequence with a microcontroller. The sequence is as follows :
- I need to turn on/off the LED with a given frequency (PWM 1). It will be between 1 and 200 Hz.
- When the LED is on, I have to control its brightness with a second PWM (the duty cycle will set the brightness, it must go from 1 to 100 %).
I have never done this kind of thing : is it possible ? If yes what is the best approach to do it ?
I have not chosen any particular microcontroller yet. I might chose one from STM32 family. The thing is that I need to control 4 different LED, and those LED are high-output LED.
Thank you in advance. :)