How to control the blinking rate of RGB LED?
Hi there!
I have been trying to interface the RGB LED with STM32L152RE. My requirement is not only to control its color but also its blinking rate. I used a timer for generating PWM signals on its three channels to control different colors of RGB LED. My question is: How should I control the blinking rate of RGB LED?
One possible solution which might be implemented is to use another timer and to generate PWM on its one of the channels. By detecting the rising and falling edge of the pulse of PWM signal I could turn on the LED at rising edge and turn off the LED at falling edge.
What do you think about this solution? Is there any other simple solution besides this?
Thanks in advance.
BR
WK
