sorta working, control needs to be improved
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
import serial, string
|
||||
|
||||
output = " "
|
||||
ser = serial.Serial('/dev/ttyUSB0', 9600, 8, 'N', 1, timeout=1)
|
||||
ser = serial.Serial('/dev/ttyUSB1', 9600, 8, 'N', 1, timeout=1)
|
||||
while True:
|
||||
while output != "":
|
||||
output = ser.read(1)
|
||||
output = ser.read(4)
|
||||
print len(output)
|
||||
try:
|
||||
print int(output)
|
||||
|
||||
Reference in New Issue
Block a user