-->
Page 1 of 2

Can't get ws2812 to work

PostPosted: Sat Mar 12, 2016 11:56 pm
by Holger Banko
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

Code: Select allpin = 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

Re: Can't get ws2812 to work

PostPosted: Sun Mar 13, 2016 4:11 pm
by TerryE
If you are using the latest dev build then this has a UART based ws2812 driver. This is solid with 100s of devices in the daisy chain, but RTFM. You can't use GP14. You have to use GPIO2.

Re: Can't get ws2812 to work

PostPosted: Sun Mar 13, 2016 9:35 pm
by Holger Banko
Thanks! Never thought that certain functionality might be there with certain pins only (exception ADC). The documentation for the WS2812 doesn't say anything about it.

Will try that later today and hope that was the issue.

Holger

Re: Can't get ws2812 to work

PostPosted: Tue Mar 15, 2016 9:40 am
by giovanne
TerryE wrote:If you are using the latest dev build then this has a UART based ws2812 driver. This is solid with 100s of devices in the daisy chain, but RTFM. You can't use GP14. You have to use GPIO2.


can you please link me to the latest dev build with UART based ws2812 driver.
Is it precompiled or do I have to compile it by myself?

Thanks.