102shows
102shows copied to clipboard
Fix call to spi.xfer2 which starts to modify LED information in place
This fixes not working spidev by using the Adafruit SPI implementation if present.
Does spidev
not work for you? What errors are you seeing?
The current implementation stopped working for me after upgrading to Debian 10. The strip was showing strange patterns instead. One way could be to add Adafruit SPI implementatino as an option.
The output is resulting in wrong color values and also the system seems to be frozen from time to time. So for me this is totally unusable with spidev
. The problem appeared after upgrading to Debian 10.
The underlying problem was, that SpiDev.xfer2(..)
was modifying the self.leds
content. Now handing over a copy should avoid this problem.
This is related to https://github.com/doceme/py-spidev/issues/61. The problem only appears on Python 3.