From 85eccd8661313036c7d0085935f0cf7c2a1c032b Mon Sep 17 00:00:00 2001 From: zwsd Date: Tue, 27 Sep 2022 10:52:01 +0800 Subject: [PATCH] update --- main/CMakeLists.txt | 1 + main/app_main.cpp | 2 ++ main/cover.c | 7 +++++++ main/cover.h | 5 +++++ 4 files changed, 15 insertions(+) create mode 100644 main/cover.c create mode 100644 main/cover.h diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 0499e22..f9b1abf 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -7,6 +7,7 @@ set(srcs "app_main.cpp" # "wifi.c" "heating_plate.c" "temp.c" + "cover.c" ) idf_component_register(SRCS "${srcs}"# diff --git a/main/app_main.cpp b/main/app_main.cpp index 3026b21..e8e12b1 100644 --- a/main/app_main.cpp +++ b/main/app_main.cpp @@ -10,6 +10,7 @@ extern "C" #include "heating_plate.h" #include "temp.h" #include "port.h" +#include "cover.h" } #define REACTION_TIME_MS 10 * 60 * 1000 @@ -122,6 +123,7 @@ extern "C" void app_main(void) T_wifi_init(); T_temp_init(); T_heating_plate_init(&heating_plate_structer); + cover_init(); T_key_registered_cb(process_key_event); T_wifi_registered_cb(); diff --git a/main/cover.c b/main/cover.c new file mode 100644 index 0000000..f831336 --- /dev/null +++ b/main/cover.c @@ -0,0 +1,7 @@ +#include "cover.h" + +void cover_init(void) {} +bool cover_get_level(void) +{ + return false; +} \ No newline at end of file diff --git a/main/cover.h b/main/cover.h new file mode 100644 index 0000000..66039a4 --- /dev/null +++ b/main/cover.h @@ -0,0 +1,5 @@ +#pragma once +#include + +void cover_init(void); +bool cover_get_level(void); \ No newline at end of file