1#ifndef SENSESP_SYSTEM_MINIMAL_BUTTON_H_
2#define SENSESP_SYSTEM_MINIMAL_BUTTON_H_
7#include "elapsedMillis.h"
13using namespace ace_button;
28 virtual void handleEvent(AceButton* button, uint8_t event_type,
29 uint8_t button_state)
override {
30 ESP_LOGD(__FILENAME__,
"Button event: %d", event_type);
32 case AceButton::kEventPressed:
34 ESP_LOGD(__FILENAME__,
"Press");
36 case AceButton::kEventLongReleased:
37 ESP_LOGD(__FILENAME__,
"Long release, duration: %d",
45 case AceButton::kEventReleased:
60 ESP_LOGD(__FILENAME__,
"Short release, duration: %d",
62 ESP_LOGD(__FILENAME__,
"Restarting");
75 ESP_LOGD(__FILENAME__,
"Performing a factory reset");
static const std::shared_ptr< SensESPBaseApp > & get()
Get the singleton instance of the SensESPBaseApp.