102shows icon indicating copy to clipboard operation
102shows copied to clipboard

Fix call to spi.xfer2 which starts to modify LED information in place

Open wuan opened this issue 4 years ago • 4 comments

This fixes not working spidev by using the Adafruit SPI implementation if present.

wuan avatar Nov 25 '20 21:11 wuan

Does spidev not work for you? What errors are you seeing?

sleiner avatar Dec 18 '21 11:12 sleiner

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.

wuan avatar Jan 30 '22 16:01 wuan

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.

wuan avatar Feb 10 '22 16:02 wuan

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.

wuan avatar Dec 11 '22 13:12 wuan