Fixed python byte types

This commit is contained in:
Jake Hillion 2020-04-26 19:13:48 +01:00
parent d5286d4d53
commit 7b3e95093e

8
python/server.py Normal file → Executable file
View File

@ -8,8 +8,8 @@ with serial.Serial('/dev/ttyACM0') as ser:
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')
ser.write(b'f' if (i==j and k==1) else b'0')
ser.write(b'n')
ser.write(b'l')
ser.write(b'q')