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//!short press on buttonA (top button)
31void buttonA_ShortPress();
32//!long press on buttonA (top button)
33void buttonA_LongPress();
34//!the long press of the side button
35void buttonB_LongPress();
36//!the short press of the side button
37void buttonB_ShortPress();
38
39#endif //USE_BUTTON_MODULE