I don’t know if this is the right section or not, it’s nothing really to do with LEDs other than I happen to be using PWM to drive LEDs in this case but…
I’ve been reading → http://arduino.cc/en/Tutorial/SecretsOfArduinoPWM and it’s becoming a bit clearer now.
I’m using all 6 PWMs to control 2 sets of RGB LEDS. The LEDS connected to 3,5,6 seem to be pulsating under certain circumstances and I’m pretty sure it’s isolated to just the reg and green channels.
I’m guessing that 2 of the 6 PWMs are setup in a different way or one of the 3 timers is doing something different and this is causing the flickering I can see.
So how do I get all my PWM working in the same way? I do use millis() in my code so I need to keep that working too. I’m not too fussed what mode/freq the PWMs use, as long as all 6 are the same and you can’t see the LEDs flickering.