ws2812-spi icon indicating copy to clipboard operation
ws2812-spi copied to clipboard

Modification to work on BananaPi

Open art103 opened this issue 8 years ago • 2 comments

Thank you for writing this utility. I have just used it on the BananaPi R1 (but should apply to other sunxi platforms).

I had to modify ws2812.py to use write2812_pylist4() and replace tx=[] with tx=[0x00]. Otherwise, the SPI bus defaults to having MOSI high for a period of time before starting the sequence (checked on a scope). This was causing the 1st LED to have ~50% green always on.

For others interested, do "modprobe spi_sun7i" to enable SPI support on the BPI.

art103 avatar Feb 02 '17 10:02 art103

Thank you for writing this utility. I have just used it on the BananaPi R1 (but should apply to other sunxi platforms).

I had to modify ws2812.py to use write2812_pylist4() and replace tx=[] with tx=[0x00]. Otherwise, the SPI bus defaults to having MOSI high for a period of time before starting the sequence (checked on a scope). This was causing the 1st LED to have ~50% green always on.

For others interested, do "modprobe spi_sun7i" to enable SPI support on the BPI.

same issue on Orange Pi Zero when using numpy, when using write2812_pylist4 the first led is ok

Bakipl avatar Mar 16 '20 14:03 Bakipl

Same error in nano pi neo, first led always green.any idea?

Thanks!

Ataraxiall avatar Sep 15 '21 07:09 Ataraxiall