Hello. I am middle school teacher that is trying to figure out how to use a APA106 RGB LEDs. (I thought I ordered normal RGB LEDs and they were broke. Oops.) It looks like I can control them by downloading neopixel and using that module. I went through the instructions online that had me type in about 8 commands into my command line, but I can't run a demo because it raises an error when importing neopixel. If I type 'import neopixel' into the shell, it says that that module doesn't exist.
I am using a Raspberry Pi 3 with the goal of programming with Python. I tried the commands on 2 different computers with the same result. I'm sure I am missing somethign. I would love any help.
Thanks.
Trouble with uploading neopixel
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jerhieb
- Posts: 4
- Joined: Thu May 31, 2018 10:06 am
Re: Trouble with uploading neopixel
Correction. IT should read, trouble with downloading neopixel.
- jerhieb
- Posts: 4
- Joined: Thu May 31, 2018 10:06 am
Re: Trouble with uploading neopixel
I just noticed that it was saved for python 2.7 instead of python 3. Does neopixel work in python 3?
- brubell
- Learn User Page
- Posts: 2010
- Joined: Fri Jul 17, 2015 10:33 pm
Re: Trouble with uploading neopixel
Can you link your software setup (what library are you using) so I can assist you better?jerhieb wrote:I just noticed that it was saved for python 2.7 instead of python 3. Does neopixel work in python 3?
- jerhieb
- Posts: 4
- Joined: Thu May 31, 2018 10:06 am
Re: Trouble with uploading neopixel
My operating system is Raspbian GNU/Linux 9(stretch)
To get this to run, I typed into my command line:
sudo apt-get update
sudo apt-get install build-essential python-dev git scons swig
git clone https://github.com/jgarff/rpi_ws281x.git
cd rpi_ws281x
scons
cd python
sudo python setup.py install
Then, I set up my APA 106. I ran strandtest.py.
First, it said that it can't run because it doesn't have the module neopixel
I was able to find that the module was downloaded in the python 2.7 file rather than python 3.5.
To get this to run, I typed into my command line:
sudo apt-get update
sudo apt-get install build-essential python-dev git scons swig
git clone https://github.com/jgarff/rpi_ws281x.git
cd rpi_ws281x
scons
cd python
sudo python setup.py install
Then, I set up my APA 106. I ran strandtest.py.
First, it said that it can't run because it doesn't have the module neopixel
I was able to find that the module was downloaded in the python 2.7 file rather than python 3.5.
Please be positive and constructive with your questions and comments.