testing touch interface for physical switching

Signed-off-by: Peter Siegmund <mars3142@users.noreply.github.com>
This commit is contained in:
2025-09-01 22:14:52 +02:00
parent 7d563574d8
commit d7752734cf
9 changed files with 119 additions and 24 deletions

View File

@@ -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;