Please note that this is far from done and in an early alpha stage, but stable. Also note that this module needs super user rights to run. Use at your own risk.
Wrapper for rpi_ws281x including functionality to use an LED matrix.
LEDController is a package that builds upon the rpi_ws281x to work with an 8 by 32 matrix to display and scroll text.
LEDController is not yet registered with pypi. You have to download and install it manually using
git clone https://github.com/tharrry/LEDController.git
pythonX -m pip install /LEDController/
This clones the package from this repository and installs it to the dist_packages
folder of the according python version. Its dependency rpi_ws281x
willbe installed aswell.
Replace the X
in pythonX
with the desired python version. This package should works with both python2
and python3
.
Import this module into Your project with
from LEDController import prettyLight
and use it with the
prettyLight().light('someString',[r,g,b])
function.
This will scroll the someString
string across the matrix right to left. The text will have the color specified in the list.
Type: String
Default: no default value
This is the string that will scroll across the LED matrix.
Type: List
Default: no defaul value
This list represents the color in which the text is to be displayed. It should have exactly 3 elements, each of which is an integer between 0 and 255.
- Project homepage: https://github.com/tharrry/LEDController
- Repository: https://github.com/tharrry/LEDController.git
- Related projects:
- I originally created the light and scroll functions after following this tutorial: https://dordnung.de/raspberrypi-ledstrip/ws2812 This site may be displayed in German, but has an option to switch to english.
The code in this project is licensed under MIT license.