rpi-rgb-led-matrix/python
2016-03-30 09:33:41 -07:00
..
rgbmatrix o Phython: Add Color constructor to directly give red/green/blue 2015-12-02 06:07:31 +00:00
samples o Add an example that shows text running. 2015-12-02 07:08:43 +00:00
.gitignore o Added support for background colors on DrawText and DrawGlyph 2015-12-01 22:30:55 -08:00
Makefile o Make generated sources a separate dependency that someone can 2015-07-27 18:14:23 -07:00
README.md o Update documentation to mention to install python2.7-dev. 2016-03-30 09:33:41 -07:00
setup.py o Improved directory structure of Python code. 2015-07-23 23:44:27 -07:00

Python bindings for RGB Matrix library

Building

In the root directory for the matrix library simply type

  $ sudo apt-get install python2.7-dev
  $ make build-python
  $ make install-python

Using the library

#!/usr/bin/env python
from rgbmatrix import RGBMatrix
import time

rows = 16
chains = 1
parallel = 2
myMatrix = RGBMatrix(rows, chains, parallel)
myMatrix.Fill(255, 0, 0)
time.sleep(5)
myMatrix.Clear()