|
|
@ -8,7 +8,9 @@ extern "C" |
|
|
|
#include "wifi.h"
|
|
|
|
#include "heating_plate.h"
|
|
|
|
} |
|
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
|
|
* *******************************************************light******************************************************* * |
|
|
|
***********************************************************************************************************************/ |
|
|
|
power_state_light_structer_t power_state_light_structer = { |
|
|
|
.state = ShutDown, |
|
|
|
.change_flag = false, |
|
|
@ -26,6 +28,14 @@ wifi_state_light_structer_t wifi_state_light_structer = { |
|
|
|
.change_flag = false, |
|
|
|
}; |
|
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
|
|
* ********************************************************key******************************************************** * |
|
|
|
***********************************************************************************************************************/ |
|
|
|
T_key_structer_t T_key_structer = { |
|
|
|
.key_before_state = false, |
|
|
|
.key_now_state = false, |
|
|
|
}; |
|
|
|
|
|
|
|
static void T_all_light_init(void) |
|
|
|
{ |
|
|
|
T_power_light_init(&power_state_light_structer); |
|
|
@ -40,10 +50,10 @@ extern "C" void app_main(void) |
|
|
|
T_all_light_init(); |
|
|
|
ble_spp_server_init(); |
|
|
|
camera_init(); |
|
|
|
T_key_init(); |
|
|
|
T_key_init(&T_key_structer); |
|
|
|
T_wifi_init(); |
|
|
|
|
|
|
|
T_key_registered_cb(); |
|
|
|
T_key_registered_cb(camera_recognition_reaction_plate); |
|
|
|
T_wifi_registered_cb(); |
|
|
|
|
|
|
|
while (true) |
|
|
|