8 #ifndef COMPONENTS_ESPECTRO32_EXAMPLES_IDF_EX_BUTTON_HPP_
9 #define COMPONENTS_ESPECTRO32_EXAMPLES_IDF_EX_BUTTON_HPP_
12 #include <ESPectro32_Board.h>
14 const static char *TAG_EX_BUTTON =
"BTN";
16 static void load_ex_button() {
18 ESPectro32.
ButtonA().onButtonUp([]() {
19 ESP_LOGI(TAG_EX_BUTTON,
"Button A up");
22 ESPectro32.
ButtonA().onDoublePressed([]() {
23 ESP_LOGI(TAG_EX_BUTTON,
"Button A doubled");
26 ESPectro32.
ButtonB().onButtonUp([]() {
27 ESP_LOGI(TAG_EX_BUTTON,
"Button B up");
ESPectro32_Button & ButtonB()
Get Button "B" object.
Definition: ESPectro32_Board.cpp:140
ESPectro32_Button & ButtonA()
Get Button "A" object.
Definition: ESPectro32_Board.cpp:126