This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to control 3 or more than 3 LEDs using PWM on nRF51 ?

Hi All,

I have query regarding PWM usage in nRF51-DK. I have a requirement to control 3 LEDs (brightness and power) simulatneously. I intend to use PWM for the same. But as i have use the default example given in SDK, only 2 LED's can be controlled at a time (with Softdevice). I see, with 3 timers, one timer used for Softdevice and 2 are free for PWM. Can anyone suggest me how can i control more LED's with PWM or may be share an example code of the same ?

any help or suggestion would be well appreciated, thanks.

Related