|
|
@ -37,6 +37,13 @@ T_key_structer_t T_key_structer = { |
|
|
|
.key_now_state = false, |
|
|
|
}; |
|
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
|
|
* ***************************************************heating_plate*************************************************** * |
|
|
|
***********************************************************************************************************************/ |
|
|
|
heating_plate_structer_t heating_plate_structer = { |
|
|
|
.heating_plate_preheat_finished_flag = false, |
|
|
|
}; |
|
|
|
|
|
|
|
static void T_all_light_init(void) |
|
|
|
{ |
|
|
|
T_power_light_init(&power_state_light_structer); |
|
|
@ -45,20 +52,17 @@ static void T_all_light_init(void) |
|
|
|
T_wifi_state_light_init(&wifi_state_light_structer); |
|
|
|
} |
|
|
|
|
|
|
|
/* 有反应板的处理 */ |
|
|
|
void process_camera_identifies_successful_event(void) {} |
|
|
|
|
|
|
|
/* 没有反应板的处理(加热) */ |
|
|
|
void process_camera_identifies_failed_event(void) |
|
|
|
void process_key_event(void) |
|
|
|
{ |
|
|
|
if (T_temp_get_data() <= 48.0) |
|
|
|
if (heating_plate_structer.heating_plate_preheat_finished_flag) |
|
|
|
{ |
|
|
|
T_heating_plate_start(); |
|
|
|
} |
|
|
|
/* 加热完成 */ |
|
|
|
} |
|
|
|
|
|
|
|
void process_key_event(void) |
|
|
|
else |
|
|
|
{ |
|
|
|
/* 加热未完成 */ |
|
|
|
T_heating_plate_start(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
extern "C" void app_main(void) |
|
|
|