uart_control.py
# هذا العمل مرخص بموجب ترخيص MIT.
# حقوق النشر (c) 2013-2023 OpenMV LLC. جميع الحقوق محفوظة.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# التحكم في UART
#
# يوضح هذا المثال كيفية استخدام المنفذ التسلسلي على كاميرا OpenMV الخاصة بك.
import time
from pyb import UART
# تهيئة كائن UART.
uart = UART("LP1", 19200, timeout_char=200)
while True:
uart.write("Hello World!\r")
time.sleep_ms(1000)