uart = UART(3,115200) # 定义串口3变量
while(True):
if uart.any():
a = uart.readchar()
print(a)粘贴代码
先用串口调试助手测试。https://singtown.com/learn/50240/