rpi-ws281x/rpi-ws281x-python

TypeError: in method 'ws2811_led_set', argument 3 of type 'uint32_t'

Opened this issue · 0 comments

I am running on a headless 64bit bookworm version of Raspberry Pi OS. I am running it on a "Raspberry Pi 3 Model A Plus Rev 1.1", so I had to edit rpihw.c to include it. When I run the code I get the following:

File "/home/pi/pilotmap/lib/python3.11/site-packages/rpi_ws281x-5.0.0-py3.11-linux-aarch64.egg/rpi_ws281x/rpi_ws281x.py", line 155, in setPixelColor
self[n] = color
~~~~^^^
File "/home/pi/pilotmap/lib/python3.11/site-packages/rpi_ws281x-5.0.0-py3.11-linux-aarch64.egg/rpi_ws281x/rpi_ws281x.py", line 118, in setitem
return ws.ws2811_led_set(self._channel, pos, value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: in method 'ws2811_led_set', argument 3 of type 'uint32_t'