Can't get ws2812 to work
Posted: Sat Mar 12, 2016 11:56 pm
Hi Guys,
I have used the online build service to make sure that I got the ws2812 module in my Lua images. Flashed it to my ESP2866 dev board and all seems to be fine so far.
When I connect my ws2812 strip with 6 LEDs to GPIO014 and run this code
nothing happens. The LED strip gets 5V separately from an external power supply. The ESP is connect via USB on my PC. Tried to have the strip and the ESP to share the same ground. Change the pin, bot not a change. The LEDs remain dark. Well sometimes after a few minutes the first turns green which seems to be random.
Any clues? Thought that would be one of the easiest things to try .
Holger
I have used the online build service to make sure that I got the ws2812 module in my Lua images. Flashed it to my ESP2866 dev board and all seems to be fine so far.
When I connect my ws2812 strip with 6 LEDs to GPIO014 and run this code
Code: Select all
pin = 14 -- GPIO Pin 16 top left
leds_rgb = string.char(255,0,0, 0,255,0, 0,0,255)
ws2812.writergb(pin, leds_rgb)
nothing happens. The LED strip gets 5V separately from an external power supply. The ESP is connect via USB on my PC. Tried to have the strip and the ESP to share the same ground. Change the pin, bot not a change. The LEDs remain dark. Well sometimes after a few minutes the first turns green which seems to be random.
Any clues? Thought that would be one of the easiest things to try .
Holger