Hi Tissy,
Since the software PWM command only works while that statement is active. It's going to be difficult to get the LED's to work the way you're wanting.
Take a look at this link
Multiple Slow speed Software PWM
This will allow you to have all 3 PWM's running in the background at the same time. Then you can just cycle thru the PWM levels as needed without worrying about the timing.
HTH,
Darrel




Bookmarks