egoShield
Public Attributes | List of all members
buttons Struct Reference

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
 

Detailed Description

struct to hold information required to debounce button.

Definition at line 190 of file egoShieldTeach.h.

Member Data Documentation

◆ btn

uint8_t buttons::btn

Variable to indicate a button press or release

Definition at line 191 of file egoShieldTeach.h.

◆ debounce

uint8_t buttons::debounce

Variable to hold current and past samples of the button GPIO pin

Definition at line 191 of file egoShieldTeach.h.

◆ holdCnt

uint8_t buttons::holdCnt

Counter to determined when the button should go from PRESSED to HOLD

Definition at line 191 of file egoShieldTeach.h.

◆ state

uint8_t buttons::state

Current debounce state of the button

Definition at line 191 of file egoShieldTeach.h.

◆ time

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.


The documentation for this struct was generated from the following file: