Update README.md

This commit is contained in:
Sijisu 2019-09-25 18:12:03 +00:00
parent 02bb752be9
commit 852bdbd2ec

View File

@ -7,7 +7,8 @@
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 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 4. Make sure that `slave.py` on each device
5. Now you can use the `master` module as shown in `test.py`: 5. Now you can use the `master` module as shown in `test.py`:
`from master import ColourArray
```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]], 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]],
@ -19,5 +20,5 @@ 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]], [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]],
[[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]]] [[255,255,255],[255,255,255],[255,255,255],[255,255,255],[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 = ColourArray()
c.send(testColorData)` c.send(testColorData)```
6. Have fun! 6. Have fun!