2 #ifndef __buttonsCommanderSwitch_H__ 3 #define __buttonsCommanderSwitch_H__ 7 #ifndef NO_BUTTONSCOMMANDER 8 #ifndef NO_BUTTONSCOMMANDERSWITCH 36 unsigned long debounceDelay;
38 GPIO_pin_t lastSelectedPin;
41 unsigned long lastDebounceTime;
63 unsigned long GetId(GPIO_pin_t inPin)
const;
68 static unsigned long loopOnePin(GPIO_pin_t inPin,
unsigned long inId,
unsigned long inPreviousId,
69 unsigned long *apDebounceDelay, GPIO_pin_t *apLastSelectedPin,
70 int *apLastButtonState,
unsigned long *apLastDebounceTime,
bool inSendEvent =
true);
72 #ifdef COMMANDERS_PRINT_COMMANDERS 76 void printCommander();
COMMANDERS_EVENT_TYPE Event