WS2812 LED bit code problem

The big problem here is the timer 0 interrupt that keeps going off every 4uS, that disturbs the timing. The existing libraries get round this by disabling the interrupt when outputting the data.
The direct port access helps with the timing but is not much different to using assembler.

1 Like