testing touch interface for physical switching
Signed-off-by: Peter Siegmund <mars3142@users.noreply.github.com>
This commit is contained in:
@@ -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