testing touch interface for physical switching
Signed-off-by: Peter Siegmund <mars3142@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
idf_component_register(SRCS
|
||||
"main.c"
|
||||
INCLUDE_DIRS "."
|
||||
INCLUDE_DIRS "."
|
||||
)
|
||||
|
@@ -1,16 +1,3 @@
|
||||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
## Required IDF version
|
||||
idf:
|
||||
version: '>=5.4.0'
|
||||
# # Put list of dependencies here
|
||||
# # For components maintained by Espressif:
|
||||
# component: "~1.0.0"
|
||||
# # For 3rd party components:
|
||||
# username/component: ">=1.0.0,<2.0.0"
|
||||
# username2/component2:
|
||||
# version: "~1.0.0"
|
||||
# # For transient dependencies `public` flag can be set.
|
||||
# # `public` flag doesn't have an effect dependencies of the `main` component.
|
||||
# # All dependencies of `main` are public by default.
|
||||
# public: true
|
||||
|
@@ -1,12 +1,17 @@
|
||||
#include "light.h"
|
||||
#include "persistence.h"
|
||||
#include "remote_control.h"
|
||||
#include "touch.h"
|
||||
|
||||
void init_touch_gpio(void);
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
/// init persistence
|
||||
persistence_init("lighthouse");
|
||||
|
||||
init_touch();
|
||||
|
||||
/// init WLED
|
||||
if (wled_init() != ESP_OK)
|
||||
{
|
||||
@@ -20,7 +25,10 @@ void app_main(void)
|
||||
printf("Failed to initialize beacon");
|
||||
return;
|
||||
}
|
||||
if (beacon_start() != ESP_OK)
|
||||
/// start beacon service
|
||||
uint8_t beacon_enabled = 1;
|
||||
persistence_load(VALUE_TYPE_INT32, "BEACON_ENABLED", &beacon_enabled);
|
||||
if (beacon_enabled && beacon_start() != ESP_OK)
|
||||
{
|
||||
printf("Failed to start beacon");
|
||||
return;
|
||||
|
Reference in New Issue
Block a user