ws2812-spi
ws2812-spi copied to clipboard
Modification to work on BananaPi
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.
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
Same error in nano pi neo, first led always green.any idea?
Thanks!