2 #ifndef __buttonsCommanderSwitchTwoPins_H__ 3 #define __buttonsCommanderSwitchTwoPins_H__ 7 #ifndef NO_BUTTONSCOMMANDER 8 #ifndef NO_BUTTONSCOMMANDERSWITCH 32 unsigned long debounceDelay;
33 GPIO_pin_t lastSelectedPin;
36 unsigned long lastDebounceTime;
48 void begin(
unsigned long inId1,
int inPin1,
unsigned long inId2,
int inPin2);
55 inline unsigned long GetId(GPIO_pin_t inPin)
const {
return inPin == this->Pin1 ? this->
Id : (inPin == this->Pin2 ? this->Id2 :
UNDEFINED_ID); }
57 #ifdef COMMANDERS_PRINT_COMMANDERS 61 void printCommander();