笔记:python读取串口数据并保到本地txt文件

效果 代码 import time import serial ser = serial.Serial( port=‘COM3’, baudrate=9600, parity=serial.PARITY_ODD, # 校验位 stopbits=serial.STOPBITS_TWO, # 停止位 bytesize=serial.SEVENBITS # 数据位 ) data = ‘’ while T
相关文章
相关标签/搜索