Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Error : 'WS2801' #36

Closed
CJGoush opened this issue Aug 28, 2020 · 2 comments
Closed

Key Error : 'WS2801' #36

CJGoush opened this issue Aug 28, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@CJGoush
Copy link

CJGoush commented Aug 28, 2020

John, every time I go to run the check_lights_wiring file I get this error message. "Key Error: 'WS2801'. I have checked the soldering connections to my LED's and I am sure they are correct. However, it does not seem that the RasPi is communicated with the lights. Any ideas as to solving this?

@benshaw5
Copy link

benshaw5 commented Dec 7, 2020

CJGoush, I ran into the same error last night. I'm not a raspberry pi or python expert by any stretch of the imagination, but I did manage to figure out the pi was having trouble with the SPI bus. I had the SPI enabled per John's instructions but, perhaps due to different variants of the pi OS, I found I needed to install python SPI wrapper to make it work. Once I installed the SPI wrapper the check_lights_wiring started working. The steps I used are below and the link I found it is at the bottom.

Step 3 – Install Python SPI Wrapper
In order to read data from the SPI bus in Python we need some additional libraries. These may already be installed but you can check using :

sudo apt-get install -y python-dev python3-dev

and :

sudo apt-get install -y python-spidev python3-spidev

Then to finish we can download ‘py-spidev’ and compile it ready for use :

cd ~
git clone https://github.com/Gadgetoid/py-spidev.git
cd py-spidev
sudo python setup.py install
sudo python3 setup.py install
cd ~

Link to the SPI interface tutorial

@JohnMarzulli
Copy link
Owner

Thank you for the update!

@JohnMarzulli JohnMarzulli pinned this issue Dec 9, 2020
@JohnMarzulli JohnMarzulli self-assigned this Dec 9, 2020
@JohnMarzulli JohnMarzulli added the bug Something isn't working label Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants