Hello, sorry for that Noobish Question, but how can i send a UART Message to the M7 back. I connected a Cable on both Pins. Rx and Tx but i get no answer. the read is still None.
Is there anything i miss to implement?
Greets Tim
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))
mhh ok is there anything i have to look to it, cause i get no message back, i use the pins 4 and 5, but still noch message is incoming.
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(3, 19200, bits=8, parity=None, stop=1, timeout_char = 100)
while(True):
blue_led.on()
time.sleep(1000)
blue_led.off()
uart.write('Hallo\n')
uart.any()
print(uart.read())