File indexing completed on 2024-11-03 06:41:20

0001 #!/usr/bin/python
0002 
0003 import serial
0004 
0005 #import serial.tools.list_ports
0006 #print list(serial.tools.list_ports.comports())
0007 
0008 s = serial.Serial("./serial_out", 9600,timeout=2)
0009 print(s)
0010 
0011 while True:
0012   x = s.read(3)
0013   print('read ' + x)