A couple of python scripts to use a stack of Turris Omnias as a big display.
Go to file
2019-10-25 15:15:12 +02:00
__pycache__ Added some more blinking. 2019-10-25 15:15:12 +02:00
dice.py Added some more blinking. 2019-10-25 15:15:12 +02:00
LICENSE Add LICENSE 2019-09-25 18:28:23 +00:00
master.py Added some more blinking. 2019-10-25 15:15:12 +02:00
movingdot.py Added some more blinking. 2019-10-25 15:15:12 +02:00
movingrainbow.py Added some more blinking. 2019-10-25 15:15:12 +02:00
README.md Update README.md again 2019-09-25 18:21:01 +00:00
setup.py Added master part, setup and test scripts 2019-09-25 19:54:16 +02:00
slave.py Connection reset handling. 2019-10-25 13:54:00 +02:00
test.py Added some more blinking. 2019-10-25 15:15:12 +02:00

Turris colors

  • Scripts written in Python 3, allowing you to turn few Turris Omnia routers into a centrally controlled color display

Setup

  1. Setup your routers so they see each other (so they are in one network)
  2. Write correct IPs of the routers into the master.py file
  3. Run setup.py that will turn LED's autonomy off. pwntools module is required to run the setup.py script, so you can also run the commands from the file manually
  4. Make sure that slave.py is running on each device
  5. Now you can use the master module as shown in test.py to control the LEDs:
from master import ColourArray

testColorData = [[[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]],
                [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]],
                [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]],
                [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]],
                [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]],
                [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]],
                [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]],
                [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]],
                [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]]]
c = ColourArray()
c.send(testColorData)

Data

  • Data passed to ColourArray().send() includes RGB values for every LED in every router