parent
0bb76864af
commit
d906d0811d
|
@ -16,6 +16,8 @@ host = serial.Serial('COM3', 9600)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
output = host.readline()
|
output = host.readline()
|
||||||
print(output.decode("ASCII"))
|
output = output.decode("ASCII")
|
||||||
|
output = output.strip()
|
||||||
|
print(output)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
break
|
break
|
Loading…
Reference in New Issue