摘要: import time import serial def test_receive(): # 配置串口参数 port = '/dev/ttyUSB0' # 根据你的设备更改端口号 baud_rate = 9600 # 波特率 bytesize = serial.EIGHTBITS # 数据位 pa 阅读全文
posted @ 2024-09-26 15:07 ganph 阅读(463) 评论(0) 推荐(0)