Electry / Arduino_SK6812

Arduino library for SK6812 based RGBW (4-channel) LEDs
35 stars 12 forks source link

Missing wait time between sending out data stream #3

Open whati001 opened 3 years ago

whati001 commented 3 years ago

The SK6812 controller awaits a ~80μs low signal between data transmission. Taken from: https://cdn-shop.adafruit.com/product-files/1138/SK6812+LED+datasheet+.pdf

Currently, if we run the sync() funciton in an endless loop, the leds light up in same "random" fashion. This is because we do not wait those 80us between sending out the signals.

Adafruit does some busy wait for 300us to guarantee proper led setting. Same logic should be applied here.

ChrisvV1 commented 1 year ago

Right now I'm making a new version where these kind of problems are fixed and I'm making some nice extra features that make it easier to use.