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
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)
32
void
buttonA_ShortPress
();
33
//!long press on buttonA (top button)
34
void
buttonA_LongPress
();
35
//!the long press of the side button
36
void
buttonB_LongPress
();
37
//!the short press of the side button
38
void
buttonB_ShortPress
();
39
#endif
//USE_BUTTON_MODULE
loop_ButtonProcessing
void loop_ButtonProcessing()
the loop for buttonProcessing (extension of ButtonModule)
Definition:
ButtonProcessing.cpp:857
buttonB_ShortPress
void buttonB_ShortPress()
the short press of the side button
Definition:
ButtonProcessing.cpp:631
refreshDelayButtonTouched_ButtonProcessing
void refreshDelayButtonTouched_ButtonProcessing()
called by the feed operation to say the device is still running.. and count it as a button click.
Definition:
ButtonProcessing.cpp:145
setup_ButtonProcessing
void setup_ButtonProcessing()
Definition:
ButtonProcessing.cpp:830
buttonA_LongPress
void buttonA_LongPress()
long press on buttonA (top button)
Definition:
ButtonProcessing.cpp:503
buttonB_LongPress
void buttonB_LongPress()
the long press of the side button
Definition:
ButtonProcessing.cpp:592
buttonA_ShortPress
void buttonA_ShortPress()
short press on buttonA (top button)
Definition:
ButtonProcessing.cpp:516
src
ButtonModule
ButtonProcessing.h
Generated on Wed Jan 11 2023 09:16:22 for ESP_IOT by
1.9.5