Hi,
I have an issue with the neopixel library, when I try the code from the wiki and I type "np. write()", all leds go white and when I renew the "np. write()" it do the job. It go wrong evry two "np. write()".
Can someone help me?
Sorry for my bad english
Thanks,
Neopixel issue
Re: Neopixel issue
Do you happen to be using an ESP32?
There's an issue on that port that many Neopixels behave similarly to what you describe unless you pass a 'timing=True' when you instantiate the Neopixel class. See #159 on the old ESP32 port repo for details. So try something like:
There's an issue on that port that many Neopixels behave similarly to what you describe unless you pass a 'timing=True' when you instantiate the Neopixel class. See #159 on the old ESP32 port repo for details. So try something like:
Code: Select all
pixel_strip = neopixel.NeoPixel(machine.Pin(12), 8, timing=True)
Re: Neopixel issue
Thenks a lot Mattyt, it's working perfectly