SensESP 3.0.1
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 "sensesp.h"
7
8#include "AceButton.h"
9#include "elapsedMillis.h"
11
12namespace sensesp {
13
14using namespace ace_button;
15
23 public:
24 ButtonHandler(int pin, String config_path = "")
25 : MinimalButtonHandler(pin, config_path) {}
26
27 protected:
28 virtual void handle_long_press() override;
29};
30
31} // namespace sensesp
32
33#endif // SENSESP_SRC_SENSESP_SYSTEM_BUTTON_H_
Default Button Handler for SensESPApp applications.
Definition button.h:22
virtual void handle_long_press() override
Handle a long button press (over 1 second).
Definition button.cpp:9
ButtonHandler(int pin, String config_path="")
Definition button.h:24
Minimal Button Handler.