Working WS2812 library for ESP Arduino IDE.
Posted: Mon Apr 27, 2015 10:45 am
Working WS2812 library for ESP Arduino IDE.
Hacked together from the ADAFRUIT neopixel lib, and Markus's code he posted on this forum.
All the adafruit commands work, as expected.
My only advice is to re-write all the for loops of the functions and use timers instead. I've it working quite nicely, whilst running MQTT, webserver, WiFi...
remember to use a big power supply, my 60 LEDs in 1m pulls 3A when white.
Any feedback welcome, I will post on github at some point. It will need tidying up.
Works at 80 and 160Mhz
Sometimes the first LED is a bit tricky.. not sure why.
If anyone can offer me some advice for how to change the number of LEDs after compile time, id appreciate it. you can issue a new object definition, and when you query the led number it returns the new amount, but then on the next for loop it goes back. even when changed the library ignores it. Would be good so you can configure your ws2812s in the web browser and set the length without having to recompile....
cheers
Hacked together from the ADAFRUIT neopixel lib, and Markus's code he posted on this forum.
All the adafruit commands work, as expected.
My only advice is to re-write all the for loops of the functions and use timers instead. I've it working quite nicely, whilst running MQTT, webserver, WiFi...
remember to use a big power supply, my 60 LEDs in 1m pulls 3A when white.
Any feedback welcome, I will post on github at some point. It will need tidying up.
Works at 80 and 160Mhz
Sometimes the first LED is a bit tricky.. not sure why.
If anyone can offer me some advice for how to change the number of LEDs after compile time, id appreciate it. you can issue a new object definition, and when you query the led number it returns the new amount, but then on the next for loop it goes back. even when changed the library ignores it. Would be good so you can configure your ws2812s in the web browser and set the length without having to recompile....
cheers