Example: 50-Arduino-Boards/Giga-H7/50-Board-Control/uart_control.py
# 本作品采用MIT许可证授权。
# 版权所有 (c) 2013-2023 OpenMV LLC。保留所有权利。
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# UART控制
#
# 此示例展示了如何在OpenMV Cam上使用串口。
import time
from machine import UART
# 初始化UART对象。
uart = UART(4, 19200)
while True:
uart.write("Hello World!\r")
time.sleep_ms(1000)