logo

友友们我这助手为何发不出数据?

2024-12-02 23:15
E
lbvh
744876cb-2fde-4c13-af00-ae32444e8d04.jpg
53ccca07-d3ad-4825-ae1b-c3ff57f98d4c.jpg

代码

import time

from pyb import UART

# Always pass UART 3 for the UART number for your OpenMV Cam.

# The second argument is the UART baud rate. For a more advanced UART control

# example see the BLE-Shield driver.

uart = UART(3, 19200, timeout_char=200)

while True:

uart.write("Hello World!\r")

time.sleep_ms(1000)

2024-12-03 08:25
4
mp1t

你初始化没,com口也要对