|
|
@ -39,6 +39,7 @@ bleuart_t ble_uart_init_struct = { |
|
|
|
.receive_data_processing_flag = false, |
|
|
|
.maxClientNum = 1, |
|
|
|
.bleName = "yimei_ble", |
|
|
|
.ble_connect_flag = false, |
|
|
|
}; |
|
|
|
motor_t ble_uart_motor_structer = {.uartNum = UART_NUM_1}; |
|
|
|
|
|
|
@ -188,7 +189,11 @@ void app_main(void) { |
|
|
|
gpio_output_debug_light_init(); |
|
|
|
|
|
|
|
while (true) { |
|
|
|
port_do_debug_light_state(); |
|
|
|
if (ble_uart_init_struct.ble_connect_flag == true) { |
|
|
|
port_do_debug_light_state(300); |
|
|
|
}else{ |
|
|
|
port_do_debug_light_state(1000); |
|
|
|
} |
|
|
|
|
|
|
|
bleuart_schedule(); |
|
|
|
motor_module_schedule(); |
|
|
|