Skip to content

Wrapper for rpi_ws281x including functionality to use an LED matrix

License

Notifications You must be signed in to change notification settings

tharrry/LEDController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Logo

LEDController

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.

Installing / Getting started

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.

Features

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.

Argument 1, someString

Type: String
Default: no default value

This is the string that will scroll across the LED matrix.

Argument 2, color

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.

Links

Licensing

The code in this project is licensed under MIT license.

About

Wrapper for rpi_ws281x including functionality to use an LED matrix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages