mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
14 lines
233 B
Python
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)
|