From 9f536f0e7a4edf51f03c8446a01dfd1cd9e36d92 Mon Sep 17 00:00:00 2001 From: Sijisu Date: Wed, 25 Sep 2019 18:21:01 +0000 Subject: [PATCH] Update README.md again --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5510257..ffdce6e 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Turris colors -- Scripts written in Python 3, allowing you to turn few Turris Omnia routers into centrally controlled color display +- Scripts written in Python 3, allowing you to turn few Turris Omnia routers into a centrally controlled color display ## Setup -1. Setup your routers to see each other (so they are in one network) +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 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`: +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 @@ -22,4 +22,6 @@ testColorData = [[[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,2 [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[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) -``` \ No newline at end of file +``` +## Data +- Data passed to `ColourArray().send()` includes RGB values for every LED in every router \ No newline at end of file