jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.76k stars 616 forks source link

Doesn't support Pi Zero 2 #475

Closed jwalker55 closed 2 years ago

jwalker55 commented 2 years ago

Are there plans to add support for the Pi Zero 2?

When trying to setup a neopixel node in node-red, it doesn't work. When testing via console, I get:

 ./neopix 3 40 pixels 100 true 0 35
Traceback (most recent call last):
  File "./neopix.py", line 171, in <module>
    strip.begin()
  File "/usr/local/lib/python3.7/dist-packages/rpi_ws281x/rpi_ws281x.py", line 131, in begin
    raise RuntimeError('ws2811_init failed with code {0} ({1})'.format(resp, str_resp))
RuntimeError: ws2811_init failed with code -3 (Hardware revision is not supported)
./neopix: line 7:  2437 Segmentation fault      sudo $python_cmd -u $BASEDIR/neopix.py $@

The relevant line: RuntimeError: ws2811_init failed with code -3 (Hardware revision is not supported)

jwalker55 commented 2 years ago

Disregard. I see the update from 3 days ago. My version must be out of date. Apologies.

Gadgetoid commented 2 years ago

I have not released a new Python package yet, actually :grimacing:

jwalker55 commented 2 years ago

I will wait patiently. :)

Gadgetoid commented 2 years ago

Should be supported in - https://pypi.org/project/rpi-ws281x/4.3.1/

jwalker55 commented 2 years ago

Works great. Thanks!

Richard238 commented 2 years ago

Trying Unicornhat on Pi Zero 2 and got the code -3 error ran pip install rpi-ws281x==4.3.1 Now get code -5 error.