SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
button.h
Go to the documentation of this file.
1#ifndef SENSESP_SRC_SENSESP_SYSTEM_BUTTON_H_
2#define SENSESP_SRC_SENSESP_SYSTEM_BUTTON_H_
3
4#define DEFAULT_BUTTON_PIN 2
5
6#include "AceButton.h"
7#include "elapsedMillis.h"
8#include "sensesp.h"
12
13namespace sensesp {
14
15using namespace ace_button;
16
24 public:
27
28 protected:
29 virtual void handle_long_press() override;
30};
31
32} // namespace sensesp
33
34#endif // SENSESP_SRC_SENSESP_SYSTEM_BUTTON_H_
Default Button Handler for SensESPApp applications.
Definition button.h:23
virtual void handle_long_press() override
Handle a long button press (over 1 second).
Definition button.cpp:8
ButtonHandler(int pin, String config_path="")
Definition button.h:25
Construct a new transform based on a single function.
Minimal Button Handler.