logo

openmv用串口向上位机发送数据,为什么上位机收不到?

2024-12-10 16:00
7
xolz

# UART Control

#

# This example shows how to use the serial port on your OpenMV Cam. Attach pin

# P4 to the serial input of a serial LCD screen to see "Hello World!" printed

# on the serial LCD display.

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)

while True:

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

time.sleep_ms(1000)

5430be09-5852-4d90-889d-f9bd42ad3b76.png
2024-12-13 20:16
I
网红小智智 星瞳科技

检查一下RX,TX,GND的接线对不对。