I think you can change > by XOR and maybe save some CPU cicles
like
if (rgbPWM[i+0] XOR pwm) d |= 0x80; // means rgbPWM[i+0] == pwm
But you need to use the start cicle to reset all pins.(count 0)
and save 'd' out between ISR_Calls
I think you can change > by XOR and maybe save some CPU cicles
like
if (rgbPWM[i+0] XOR pwm) d |= 0x80; // means rgbPWM[i+0] == pwm
But you need to use the start cicle to reset all pins.(count 0)
and save 'd' out between ISR_Calls