ledthemfight
ledthemfight copied to clipboard
Does not work on Raspberry Pi 5
The rpi-ws281x library is not compatible with Raspberry Pi 5 (see issue #528) so this application fails as well:
led_driver: configuring 1 led string(s) with 60 pixel(s)
led_driver: exception:
Traceback (most recent call last):
File "/tmp/ledthemfight/worker_led.py", line 277, in drive_led_forever
do_initial_setup(strings, arg)
File "/tmp/ledthemfight/worker_led.py", line 218, in do_initial_setup
strings.append(PixelString(conf["num_pixels"], 18, conf["inverted"]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/ledthemfight/worker_led.py", line 152, in __init__
self.ps.begin()
File "/usr/local/lib/python3.11/dist-packages/rpi_ws281x/rpi_ws281x.py", line 143, 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)