You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I used issue #123 to modify the project to work with the ws2801 led stip.
When I run visualization.py I get this error:
Traceback (most recent call last): File "/home/pi/audio-reactive-led-strip/python/visualization.py", line 354, in <module> led.update() File "/home/pi/audio-reactive-led-strip/python/led.py", line 156, in update _update_pi() File "/home/pi/audio-reactive-led-strip/python/led.py", line 122, in _update_pi strip.show() File "/usr/local/lib/python3.9/dist-packages/Adafruit_WS2801/WS2801.py", line 73, in show self._spi.write(self._pixels) File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO/SPI.py", line 82, in write self._device.writebytes(data) TypeError: Non-Int/Long value in arguments: b4dd2bf0.
The text was updated successfully, but these errors were encountered:
I found a fix:
In led.py
Replace: strip.set_pixel(i, Adafruit_WS2801.RGB_to_color( r[i], g[i], b[i] ))
with strip.set_pixel(i, Adafruit_WS2801.RGB_to_color( int(r[i]), int(g[i]), int(b[i]) ))
Hello,
I used issue #123 to modify the project to work with the ws2801 led stip.
When I run visualization.py I get this error:
Traceback (most recent call last): File "/home/pi/audio-reactive-led-strip/python/visualization.py", line 354, in <module> led.update() File "/home/pi/audio-reactive-led-strip/python/led.py", line 156, in update _update_pi() File "/home/pi/audio-reactive-led-strip/python/led.py", line 122, in _update_pi strip.show() File "/usr/local/lib/python3.9/dist-packages/Adafruit_WS2801/WS2801.py", line 73, in show self._spi.write(self._pixels) File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO/SPI.py", line 82, in write self._device.writebytes(data) TypeError: Non-Int/Long value in arguments: b4dd2bf0.
The text was updated successfully, but these errors were encountered: