import timefrom 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, timeout_char=1000)
while(True): str=uart.read(5) uart.write(str) uart.write("hello \r") time.sleep(1000)