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)
16//!the setup for buttonProcessing (extension of ButtonModule)
17//! 在 M5StickC Plus 启动或者复位后,即会开始执行setup()函数中的程序,该部分只会执行一次。
19
20
21//! called by the feed operation to say the device is still running.. and count it as a button click.
23
24
25//! These button presses are exposed so a MQTT message can invoke them..
26//! {'set':'buttonA','val':'longpress'}
27//! {'set':'buttonA','val':'shortpress'}
28//! {'set':'buttonB','val':'longpress'}
29//! {'set':'buttonB','val':'shortpress'}
30
31//!short press on buttonA (top button)
33//!long press on buttonA (top button)
35//!the long press of the side button
37//!the short press of the side button
39#endif //USE_BUTTON_MODULE
void loop_ButtonProcessing()
the loop for buttonProcessing (extension of ButtonModule)
void buttonB_ShortPress()
the short press of the side button
void refreshDelayButtonTouched_ButtonProcessing()
called by the feed operation to say the device is still running.. and count it as a button click.
void setup_ButtonProcessing()
void buttonA_LongPress()
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)