Hello Someone,
I am connecting bluetooth module (HC - 06) to my openmv cam h7 board, and write the following code to communicate the openmv cam data to my smart mobile phone. Openmv cam board received the commands from the mobile but while send data form the openmv cam module to mobile its not commicated. Any one please help me to solve my issue. I posted the code below
import time
#import stdin
#import stdout
import pyb
from pyb import UART
from pyb import LED
red_led = LED(1)
uart = UART(3,9600)
uart.init(9600, bits=8, parity=None, stop=1, timeout_char=1000)
while True:
if (uart.any() > 0):
red_led.toggle()
ch = uart.readchar()
print(ch)
#uart.writechar(ch)
uart.write("Hello from openmv cam!\n")
time.sleep_ms(1000)
#print(("Hello \n"))