Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
为什么我串口想传输两位数,它却理解成两个一位数?
应该要多加一个timeout参数,另外发送的时候要加换行”55,66\n“
import time from pyb import UART uart = UART(3, 9600, timeout_char=1000, timeout=1000) while True: if uart.any(): print(uart.readline().decode().split(","))