Fixed python byte types
This commit is contained in:
parent
d5286d4d53
commit
7b3e95093e
8
python/server.py
Normal file → Executable file
8
python/server.py
Normal file → Executable 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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user