-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WS2812 driver not working properly - array offset incorrect #495
Comments
What kind of LED strip do you have? |
@aykevl I am using a Raspberry Pi Pico here and have a 64 array WS2182B strip. This is NOT a RGBA I do not believe. When I set an array of 8 pixels and set to green the 0th or 1st neopixel in the array flashes between bright white and yellow at the speed of the onboard led.
When I try this code with a bluepill (it is default 8MHz nothing lights up. I suspect with the bluepill the timings are not matching up). |
This could be a problem with the power supply.
|
@aykevl just tested with MicroPython and everything works perfectly as expected. The supply is a 3.3v which is also expected. |
Hmm, that's odd. I have been using WS2812 LEDs on a RP2040 just fine.
That's very odd. Normally I'd say that indicates a problem with the wires but if it works with MicroPython that's unlikely. |
MyTechnoTalent, the minimum supply voltage for the WS2812B LED to work is 3.5V, according to the datasheet. Power supply voltage VDD: +3.5~+5.3 I tested your second program on a Raspberry Pico and it worked correctly (LED VCC = 5V). var neo machine.Pin = machine.GPIO16 // Raspberry Pico GPIO16 (pin 21) |
As stated in the comment of the example the @Gustavomurta I can not find any reference in the driver that the number of LEDs needs to be divisible by 2. For my Halloween project I have used 3 LEDs without an issue. |
Correcting my conclusion : |
Using the default example...
I am using a WS2812B and I do not believe it is an RGBA however I would assume this driver has functionality for a WS2812B? If so is there something I need to tweak as I read the docs and did not see anything regarding a WS2812B. Thank you
The text was updated successfully, but these errors were encountered: