openmv/scripts/examples/10-Arduino-Boards/Nicla-Vision/00-Board-Control/uart_control.py
2023-07-05 19:03:37 +02:00

14 lines
232 B
Python

# UART Control
#
# This example shows how to use the serial port on your OpenMV Cam.
import time
from pyb import UART
# Init UART object.
uart = UART(4, 19200)
while True:
uart.write("Hello World!\r")
time.sleep_ms(1000)