mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update USB VCP example.
This commit is contained in:
parent
112a3daaa4
commit
421b5ddb41
@ -10,6 +10,7 @@
|
||||
# port = '/dev/ttyACM0'
|
||||
# sp = serial.Serial(port, baudrate=115200, bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE,
|
||||
# xonxoff=False, rtscts=False, stopbits=serial.STOPBITS_ONE, timeout=None, dsrdtr=True)
|
||||
# sp.setDTR(True) # dsrdtr is ignored on Windows.
|
||||
# sp.write("snap")
|
||||
# sp.flush()
|
||||
# size = struct.unpack('<L', sp.read(4))[0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user