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)
15void loop_ButtonProcessing();
16//!the setup for buttonProcessing (extension of ButtonModule)
17//! 在 M5StickC Plus 启动或者复位后,即会开始执行setup()函数中的程序,该部分只会执行一次。
18void setup_ButtonProcessing();
19
20
21//! called by the feed operation to say the device is still running.. and count it as a button click.
22void 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)
34//!long press on buttonA (top button)
36//!long press on buttonA (top button)
38//!the long press of the side button
40//!the short press of the side button
42
43//#endif //USE_BUTTON_MODULE
void buttonB_ShortPress()
the short press of the side button
void buttonA_LongPress()
long press on buttonA (top button)
void buttonA_LongLongPress()
long press on buttonA (top button)
void buttonB_LongPress()
the long press of the side button
void buttonA_ShortPress()
short press on buttonA (top button)