I have 5 LEDs - ideally I would like to control the brightness of each one independently (i.e. 5 PWM channels). I'm using SDK 9.0 and SD 310. I have been looking at the PWM example, and it looks like I can configure 2 pwm channels per timer, so a total of 4 pwm channels if I use both timers. Is this correct?
Typically, I only use one LED at a time, so a less ideal solution would be to use a single PWM channel, and reassign it to the pin tied to the LED that I wish to control. In researching Nordic's PWM implementation, I fount that the current SDK 9.0 PWM example doesn't run with a SD loaded. However I read that in older SDKs pwm_init() had to be called prior to starting the stack.This would imply that changing the PWM output pin is not as simple as I had hoped. Nordic is constantly updating and improving their libraries. Is changing PWM output pins on the fly an option in SDK 9.0, if you are running SD 310? Is there anything unique that needs to be done when switching PWM output pins?
Thanks, Clint