Système de chronométrage de course (de ski)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
160 B

#!/usr/bin/python3
import serial
import time
ser = serial.Serial('/dev/ttyACM0',9600)
while True:
value = int(str(ser.readline())[5:6])
print(value)