Fügt Controller hinzu

Signed-off-by: Christof Seyfferth <mail@seyfferth.dev>
This commit is contained in:
2020-09-03 12:48:58 +02:00
parent 39c9e31664
commit 1acb8ee516
8 changed files with 38 additions and 16 deletions

7
controller.py Normal file
View File

@@ -0,0 +1,7 @@
import serial
ser = serial.Serial('/dev/ttyUSB0', 115200)
print(ser.name)
while 1:
line = ser.readline() # read a '\n' terminated line
print(line)