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

Followed instructions... did not work.

Open techlondonon opened this issue 6 years ago • 0 comments

When running python code:

import spidev import ws2812 spi = spidev.SpiDev() spi.open(0,0)

#write 4 WS2812's, with the following colors: red, green, blue, yellow ws2812.write2812(spi, [[10,0,0], [0,10,0], [0,0,10], [10, 10, 0]])

I get an error on line 2:

Python 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170124] on linux Type "copyright", "credits" or "license()" for more information.

======================== RESTART: /home/pi/ws2812.py ======================== Traceback (most recent call last): File "/home/pi/ws2812.py", line 2, in import ws2812 File "/home/pi/ws2812.py", line 4, in spi.open(0,0) FileNotFoundError: [Errno 2] No such file or directory

How do I install WS2812 library?

Sorry for the questions. I am a beginner with Raspberry Pi3 and trying to get some Addressable RGB LED's working.

Thank you, Paul

techlondonon avatar Apr 23 '18 00:04 techlondonon