ESP_IOT v2.5
IOT ESP Coding
ButtonModule.cpp File Reference
#include "ButtonModule.h"
#include "ButtonProcessing.h"
#include <Arduino.h>
Include dependency graph for ButtonModule.cpp:

Go to the source code of this file.

Functions

void refreshDelayButtonTouched_ButtonModule ()
 called by the feed operation to say the device is still running.. and count it as a button click. More...
 
void setup_ButtonModule ()
 
void loop_ButtonModule ()
 
void buttonA_ShortPress_ButtonModule ()
 
void buttonA_LongPress_ButtonModule ()
 long press on buttonA (top button) More...
 
void buttonB_LongPress_ButtonModule ()
 the long press of the side button More...
 
void buttonB_ShortPress_ButtonModule ()
 the short press of the side button More...
 

Variables

const int _buttonPin = 0
 
const int GPIO0 = _buttonPin
 
const int LED1 = 8
 
const int LED2 = 9
 
const int LEDP13 = 13
 
int LED1Status = LOW
 
int LED2Status = LOW
 
int _buttonState
 
boolean _buttonPressed
 

Function Documentation

◆ buttonA_LongPress_ButtonModule()

void buttonA_LongPress_ButtonModule ( )

long press on buttonA (top button)

Definition at line 115 of file ButtonModule.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buttonA_ShortPress_ButtonModule()

void buttonA_ShortPress_ButtonModule ( )

This is only thing exposed to others.. (Kinda which only 1 button module) short press on buttonA (top button)

Definition at line 110 of file ButtonModule.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buttonB_LongPress_ButtonModule()

void buttonB_LongPress_ButtonModule ( )

the long press of the side button

Definition at line 120 of file ButtonModule.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buttonB_ShortPress_ButtonModule()

void buttonB_ShortPress_ButtonModule ( )

the short press of the side button

Definition at line 125 of file ButtonModule.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loop_ButtonModule()

void loop_ButtonModule ( )

calls the extension of ButtonModule

Definition at line 76 of file ButtonModule.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshDelayButtonTouched_ButtonModule()

void refreshDelayButtonTouched_ButtonModule ( )

called by the feed operation to say the device is still running.. and count it as a button click.

ButtonModule

Definition at line 30 of file ButtonModule.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_ButtonModule()

void setup_ButtonModule ( )

calls the extension of ButtonModule

Definition at line 58 of file ButtonModule.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ _buttonPin

const int _buttonPin = 0

Definition at line 38 of file ButtonModule.cpp.

◆ _buttonPressed

boolean _buttonPressed

Definition at line 56 of file ButtonModule.cpp.

◆ _buttonState

int _buttonState

Definition at line 53 of file ButtonModule.cpp.

◆ GPIO0

const int GPIO0 = _buttonPin

Definition at line 41 of file ButtonModule.cpp.

◆ LED1

const int LED1 = 8

Definition at line 43 of file ButtonModule.cpp.

◆ LED1Status

int LED1Status = LOW

Definition at line 50 of file ButtonModule.cpp.

◆ LED2

const int LED2 = 9

Definition at line 44 of file ButtonModule.cpp.

◆ LED2Status

int LED2Status = LOW

Definition at line 51 of file ButtonModule.cpp.

◆ LEDP13

const int LEDP13 = 13

Definition at line 47 of file ButtonModule.cpp.