import time
from pyb import UART
uart = UART(3, 9600)
uart.init(9600, bits=8, parity=None)
data=bytes([0x55,0x55,0x05,0x03,0x02,0xe9,0x06])
while(True):
uart.write(data)
time.sleep(1000)请问这样写对吗
有什么问题?
你用星瞳串口助手看到的数据对吗?
https://singtown.com/learn/50240/
https://singtown.com/learn/50235/