python读写串口

#!/usr/bin/python import serial from time import sleep ser = serial.Serial('/dev/ttyUSB0', 9600, timeout=0.5) print ser.port print ser.baudrate def recv(serial): while True: data =serial
相关文章
相关标签/搜索