2 #ifndef __buttonsCommanderSwitchTwoPins_H__ 3 #define __buttonsCommanderSwitchTwoPins_H__ 7 #ifndef NO_BUTTONSCOMMANDER 8 #ifndef NO_BUTTONSCOMMANDERSWITCH 33 unsigned long debounceDelay;
35 byte lastButtonState1;
36 unsigned long lastDebounceTime1;
37 byte lastButtonState2;
38 unsigned long lastDebounceTime2;
50 void begin(
unsigned long inId1,
int inPin1,
unsigned long inId2,
int inPin2);
57 inline unsigned long GetId(GPIO_pin_t inPin)
const {
return inPin == this->Pin1 ? this->
Id : (inPin == this->Pin2 ? this->Id2 :
UNDEFINED_ID); }
59 #ifdef COMMANDERS_PRINT_COMMANDERS 63 void printCommander();
#define UNDEFINED_ID
Definition: Events.h:38