Added test python script
This commit is contained in:
parent
0306d4f74a
commit
e4d0d6d352
15
python/server.py
Normal file
15
python/server.py
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import serial
|
||||
|
||||
with serial.Serial('/dev/ttyACM0') as ser:
|
||||
while True:
|
||||
for i in range(30): # selected LED
|
||||
for j in range(30): # LED
|
||||
for k in range(3): # colour
|
||||
for l in range(2):
|
||||
ser.write('f' if (i==j and k==1) else '0')
|
||||
ser.write('n')
|
||||
ser.write('l')
|
||||
ser.write('q')
|
||||
|
Loading…
Reference in New Issue
Block a user