You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Skylten 205ccbce1d
Actual code
5 years ago
..
examples Actual code 5 years ago
.gitignore Actual code 5 years ago
README.md Actual code 5 years ago
aniamte_blink.py Actual code 5 years ago
aniamte_christmastree.py Actual code 5 years ago
aniamte_starrynight.py Actual code 5 years ago
aniamte_starrynight.py~ Actual code 5 years ago
animate Actual code 5 years ago
animate.py Actual code 5 years ago
animinate-xmas.py Actual code 5 years ago
ez_setup.py Actual code 5 years ago
leds.txt Actual code 5 years ago
neopixel.py Actual code 5 years ago
nohup.out Actual code 5 years ago
overclock.txt Actual code 5 years ago
rpi_ws281x.i Actual code 5 years ago
setup.py Actual code 5 years ago

README.md

Deprecated

This Python code is being phased out and replaced with https://github.com/rpi-ws281x/rpi-ws281x-python

If you're just looking to install the Python library, you can: sudo pip install rpi_ws281x or sudo pip3 install rpi_ws281x depending on your Python version of choice or find releases here: https://github.com/rpi-ws281x/rpi-ws281x-python/releases

For issues and bugs with (or contributions to) the Python library, please see: https://github.com/rpi-ws281x/rpi-ws281x-python/issues


Build

As this is just a python wrapper for the library you must first follow the build instructions in the parent directory. When complete, you can build this python wrapper:

  sudo apt-get install python-dev swig
  python ./setup.py build

If you are rebuilding after fetching some updated commits, you might need to remove the build directory first

  rm -rf ./build

Install

If you want to install the library (in a virtualenv or in the system), so that you can import neopixel from anywhere, you need to run:

  python ./setup.py install

Depending on where you are installing, root privileges may be needed (prepend sudo to the install command).

Run a demo

  sudo PYTHONPATH=".:build/lib.linux-armv7l-2.7" python examples/strandtest.py

If you installed the library, there is no need to specify PYTHONPATH:

  sudo python examples/strandtest.py