summaryrefslogtreecommitdiff
path: root/comm/openmv_com.py
blob: d5a3faf49f5a7a05bc38cdacbea7e3f993e2a59b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import time
from pyb import UART

# UART 3, and baudrate.
uart = UART(3, 19200, timeout_char=200)
location = "40"  #place to put the goal location
while True:
    uart.write("s")
    uart.write(location)
    uart.write("e")
    if uart.any():
        print(uart.read())
    time.sleep_ms(1000)