rpi-rgb-led-matrix/python
Saij f5e779ae05 Remove -j parameter (doesn't exist anymore)
Implemented SetBrightness function
Rewritten SetBrightness function (only first idea at the moment)
Use CIE1931 to modify brightness
Adding new function to python bindings
Fixed bug with CIE1931 lookup
- Adding brightness control to python library
- Adding new python sample for brightness control
Fixed bug without CIE1931 correction
Fixed typings
2015-07-06 09:28:12 +02:00
..
samples Remove -j parameter (doesn't exist anymore) 2015-07-06 09:28:12 +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 Adding python bindings 2015-06-30 19:51:41 -07: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()