openmv/scripts/examples/10-Arduino-Boards/Nicla-Vision/00-Board-Control/uart_control.py
2022-09-01 00:02:30 +02:00

14 lines
233 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)