import time
from pyb import UART
# UART 3, and baudrate.
uart = UART(3, 9600,timeout=1000)
while(True):
uart.write("Hello World!\n")
你放在while循环里了,他可不一直在发吗
timeout=1000是超时。
超时是什么意思?
https://forum.singtown.com/topic/6424/timeout的作用