Is there anything i miss to implement?
Greets Tim
Code: Select all
import time
from pyb import UART
from pyb import LED
#LED Control -----------------
red_led = LED(1)
green_led = LED(2)
blue_led = LED(3)
ir_leds = LED(4)
# 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(1, 19200, bits=8, parity=None, stop=1, timeout_char = 10)
while(True):
blue_led.on()
time.sleep(1000)
blue_led.off()
uart.write('Hallo\n')
print(uart.read(5))