scripts/examples: Add timeout_char to uart examples.

This commit is contained in:
Kwabena W. Agyeman 2023-11-22 17:44:49 -05:00
parent 25359054e7
commit c3bb53e25d
4 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ import time
from pyb import UART
# UART 3, and baudrate.
uart = UART(3, 19200)
uart = UART(3, 19200, timeout_char=200)
while True:
uart.write("Hello World!\n")

View File

@ -10,7 +10,7 @@ import time
from pyb import UART
# Init UART object.
uart = UART("LP1", 19200)
uart = UART("LP1", 19200, timeout_char=200)
while True:
uart.write("Hello World!\r")

View File

@ -14,7 +14,7 @@ from pyb import UART
# Always pass UART 3 for the UART number for your OpenMV Cam.
# The second argument is the UART baud rate. For a more advanced UART control
# example see the BLE-Shield driver.
uart = UART(3, 19200)
uart = UART(3, 19200, timeout_char=200)
while True:
uart.write("Hello World!\r")

View File

@ -14,7 +14,7 @@ from pyb import UART
# Always pass UART 3 for the UART number for your OpenMV Cam.
# The second argument is the UART baud rate. For a more advanced UART control
# example see the BLE-Shield driver.
uart = UART(3, 19200)
uart = UART(3, 19200, timeout_char=200)
while True:
uart.write("Hello World!\r")