读不到数据
from machine import Pin
import time
from machine import UART
uart = UART(0, baudrate=115200)
uart.write("1234\n2345\n3456\nabcd\n")
uart.any()
d2 = uart.readline()
print(d2)
from machine import Pin
import time
from machine import UART
uart = UART(0, baudrate=115200)
uart.write("1234\n2345\n3456\nabcd\n")
uart.any()
d2 = uart.readline()
print(d2)