ESP_IOT
v2.5
IOT ESP Coding
ButtonProcessing.h
Go to the documentation of this file.
1
//
2
// ButtonProcessing.h
3
// M5Stick
4
//
5
// Created by Scott Moody on 3/9/22.
6
//
7
8
9
#include "../../Defines.h"
10
#ifdef USE_BUTTON_MODULE
11
12
//continuation of ButtonModule
13
14
//!the loop for buttonProcessing (extension of ButtonModule)
15
void
loop_ButtonProcessing();
16
//!the setup for buttonProcessing (extension of ButtonModule)
17
//! 在 M5StickC Plus 启动或者复位后,即会开始执行setup()函数中的程序,该部分只会执行一次。
18
void
setup_ButtonProcessing();
19
20
21
//! called by the feed operation to say the device is still running.. and count it as a button click.
22
void
refreshDelayButtonTouched_ButtonProcessing();
23
24
//! These button presses are exposed so a MQTT message can invoke them..
25
//! {'set':'buttonA','val':'longpress'}
26
//! {'set':'buttonA','val':'shortpress'}
27
//! {'set':'buttonB','val':'longpress'}
28
//! {'set':'buttonB','val':'shortpress'}
29
30
#endif
31
32
//!short press on buttonA (top button)
33
void
buttonA_ShortPress
();
34
//!long press on buttonA (top button)
35
void
buttonA_LongPress
();
36
//!long press on buttonA (top button)
37
void
buttonA_LongLongPress
();
38
//!the long press of the side button
39
void
buttonB_LongPress
();
40
//!the short press of the side button
41
void
buttonB_ShortPress
();
42
43
//#endif //USE_BUTTON_MODULE
buttonB_ShortPress
void buttonB_ShortPress()
the short press of the side button
Definition:
ButtonProcessing.cpp:575
buttonA_LongPress
void buttonA_LongPress()
long press on buttonA (top button)
Definition:
ButtonProcessing.cpp:571
buttonA_LongLongPress
void buttonA_LongLongPress()
long press on buttonA (top button)
buttonB_LongPress
void buttonB_LongPress()
the long press of the side button
Definition:
ButtonProcessing.cpp:573
buttonA_ShortPress
void buttonA_ShortPress()
short press on buttonA (top button)
Definition:
ButtonProcessing.cpp:569
src
ButtonModule
ButtonProcessing.h
Generated on Wed Sep 23 2026 09:28:52 for ESP_IOT by
1.9.5