openmv/scripts/examples/50-Arduino-Boards/Nicla-Vision/50-Board-Control/uart_control.py
iabdalkader 98a29e0870 scripts/examples: Update examples.
- Add examples index.
- Remove RP2040's Bluetooth examples.
- Resort examples.
2023-10-29 21:21:55 +01:00

18 lines
395 B
Python

# This work is licensed under the MIT license.
# Copyright (c) 2013-2023 OpenMV LLC. All rights reserved.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# 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)