rpi-rgb-led-matrix/python
2015-07-06 09:52:34 +02:00
..
samples Fixed some typos 2015-07-06 09:34:07 +02:00
Makefile o Include cython build instructions. 2015-07-01 00:27:45 -07:00
README.md Adding python bindings 2015-06-30 19:51:41 -07:00
rgbmatrix.cpp Compiled cython script 2015-07-06 09:52:34 +02:00
rgbmatrix.pyx Remove -j parameter (doesn't exist anymore) 2015-07-06 09:28:12 +02:00
setup.py Adding python bindings 2015-06-30 19:51:41 -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()