egoShield
|
struct to hold information required to debounce button. More...
#include <egoShieldTeach.h>
Public Attributes | |
uint8_t | debounce |
uint8_t | state |
uint8_t | holdCnt |
uint8_t | btn |
uint16_t | time |
struct to hold information required to debounce button.
Definition at line 190 of file egoShieldTeach.h.
uint8_t buttons::btn |
Variable to indicate a button press or release
Definition at line 191 of file egoShieldTeach.h.
uint8_t buttons::debounce |
Variable to hold current and past samples of the button GPIO pin
Definition at line 191 of file egoShieldTeach.h.
uint8_t buttons::holdCnt |
Counter to determined when the button should go from PRESSED to HOLD
Definition at line 191 of file egoShieldTeach.h.
uint8_t buttons::state |
Current debounce state of the button
Definition at line 191 of file egoShieldTeach.h.
uint16_t buttons::time |
Counter to decide when a new button press should be given in the case of a HELD button
Definition at line 195 of file egoShieldTeach.h.