openmv用串口向上位机发送数据,为什么上位机收不到?
-
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 UARTAlways 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)
-
检查一下RX,TX,GND的接线对不对。