rpi-rgb-led-matrix/python
Saij f293053346 o Improved directory structure of Python code.
o Use some new features in python examples.
2015-07-23 23:44:27 -07:00
..
rgbmatrix o Improved directory structure of Python code. 2015-07-23 23:44:27 -07:00
samples o Improved directory structure of Python code. 2015-07-23 23:44:27 -07:00
Makefile o Improved directory structure of Python code. 2015-07-23 23:44:27 -07:00
README.md Adding python bindings 2015-06-30 19:51: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

  $ 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()