Add README.md
This commit is contained in:
parent
06955ecfc4
commit
02bb752be9
23
README.md
Normal file
23
README.md
Normal file
@ -0,0 +1,23 @@
|
||||
# Turris colors
|
||||
- Scripts written in Python 3, allowing you to turn few Turris Omnia routers into centrally controlled color display
|
||||
|
||||
## Setup
|
||||
1. Setup your routers to 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 autonomity off. `pwntools` module is required to do run the `setup.py` script, so you can also run the commands in the file manually
|
||||
4. Make sure that `slave.py` on each device
|
||||
5. Now you can use the `master` module as shown in `test.py`:
|
||||
`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)`
|
||||
6. Have fun!
|
Loading…
Reference in New Issue
Block a user