📜  python 串口 COM3 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:12.483000             🧑  作者: Mango

代码示例1
>>> ser = serial.Serial('COM3', 38400, timeout=0,
...                     parity=serial.PARITY_EVEN, rtscts=1)
>>> s = ser.read(100)       # read up to one hundred bytes
...                         # or as much is in the buffer