Added test python script

This commit is contained in:
Jake Hillion 2020-04-26 19:08:59 +01:00
parent 0306d4f74a
commit e4d0d6d352

15
python/server.py Normal file
View 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')