# 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, 9600, timeout_char=1000)
while(True):
if uart.any():
tmp_data=uart.read()
# tmp_data=int(tmp_data)
print(tmp_data)这个代码打印出接收到的数据,没错吧。
求助
这个是程序的原因还是串口出问题了?
还有问题是这个摄像头似乎不是上电就运行,直接连在一起,没有反应,我必须在电脑上按运行键吗?
@6vdo 这个知道了脱机运行