jgarff / rpi_ws281x

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

Raspberry Pi 4 Model B Rev 1.4 - Hardware Revision Not Supported #431

Closed frid1993 closed 2 years ago

frid1993 commented 3 years ago

Software faults out at the 'init' step. Can anyone advise?

RussellTaylor83 commented 3 years ago
Traceback (most recent call last):
  File "test.py", line 3, in <module>
    led=Led()
  File "/home/pi/git/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Server/Led.py", line 22, in __init__
    self.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)
Segmentation fault
rip3rs commented 2 years ago

any solution found? getting the same issues

Gadgetoid commented 2 years ago

See the very helpful guide here: https://github.com/jgarff/rpi_ws281x/issues/483 and - if you can - make a pull-request for your newly discovered revision ID.

We get no advance warning of new Pi models, so no idea what to add until someone finds them out in the field.

Hopefully this bugbear is soon going away in favour of https://github.com/jgarff/rpi_ws281x/pull/183