Browse Source

update

Finny_test
zwsd 3 years ago
parent
commit
1df265cb46
  1. 1
      main/CMakeLists.txt
  2. 2
      main/app_main.cpp
  3. 14
      main/temp.c
  4. 5
      main/temp.h

1
main/CMakeLists.txt

@ -6,6 +6,7 @@ set(srcs "app_main.cpp" #
"key.c"
"wifi.c"
"heating_plate.c"
"temp.c"
)
idf_component_register(SRCS "${srcs}"#

2
main/app_main.cpp

@ -7,6 +7,7 @@ extern "C"
#include "key.h"
#include "wifi.h"
#include "heating_plate.h"
#include "temp.h"
}
/***********************************************************************************************************************
* *******************************************************light******************************************************* *
@ -52,6 +53,7 @@ extern "C" void app_main(void)
camera_init();
T_key_init(&T_key_structer);
T_wifi_init();
T_temp_init();
T_key_registered_cb(camera_recognition_reaction_plate);
T_wifi_registered_cb();

14
main/temp.c

@ -0,0 +1,14 @@
/**
* @file temp.c
* @author Finny (tianjialong0106@163.com)
* @brief Temperature sensor
* @version 0.1
* @date 2022-09-26
*
* @copyright Copyright (c) 2022
*
*/
#include "temp.h"
void T_temp_init(void) {}
double T_temp_get_data(void) { return 0.0; }

5
main/temp.h

@ -0,0 +1,5 @@
#pragma once
#include "stdlib.h"
void T_temp_init(void);
double T_temp_get_data(void);
Loading…
Cancel
Save