JoDaNl / esp8266_ws2812_i2s

ESP8266 Library for driving WS2812 led-strip using the I2S output. Use within the Arduino IDE
71 stars 24 forks source link

RGBW Support (for SK6812) #12

Open lukecyca opened 6 years ago

lukecyca commented 6 years ago

I believe this library can support RGB SK6812 LEDs since they are clones of WS2812 (which happen to be more robust than the original).

There is also a RGBW version now, which uses a similar protocol. Anyone know if this library will work, or what it would take to make it work?

Here's some similar work: https://github.com/cpldcpu/light_ws2812/issues/51

pawollo commented 6 years ago

i just did a quick test, there seems to be no issues, driving 200 SK6812 in RGBW-mode with JoDaNls Program, plug'n'play. Maybe there will be issues with more Pixels and the timing could be optimized a little bit further. I just added cnlohrs bitpattern-definitions for the SK6812, they are slightly different, and added a fourth color-channel. I dont have time to do a cleanup and error-checkup so i wont commit it. Maybe you can give it a try and report bugs, clean up a little bit and do this, if you like. If you just need a quick'n'dirty solution, it should work: https://cloudstore.zih.tu-dresden.de/index.php/s/XZItxbsQomUPaPp check out the example and always define "__SK6812__" at the beginning of your code

lukecyca commented 6 years ago

@SoupMeNot incredible, thank you!

Once my LEDs arrive I will give this a shot. If I can get it working well I will clean up the code and try to get it integrated.