8 #ifndef NO_BUTTONSCOMMANDER 9 #ifndef NO_BUTTONSCOMMANDERSWITCH 13 this->debounceDelay = 50;
14 this->lastButtonState = HIGH;
15 this->lastDebounceTime = 0;
20 this->Pin = Arduino_to_GPIO_pin(inPin);
23 pinMode2f(this->Pin, INPUT_PULLUP);
28 if (this->Pin != DP_INVALID)
31 this->lastButtonState = digitalRead2f(this->Pin);
42 #ifdef COMMANDERS_PRINT_COMMANDERS 43 void ButtonsCommanderSwitchOnePin::printCommander()
45 Serial.print(F(
" SwitchOnePin Pin: "));
46 Serial.print(GPIO_to_Arduino_pin(this->Pin));
47 Serial.print(F(
" / Id: "));
48 Serial.print(this->
Id);
49 Serial.println(F(
""));
static unsigned long RaiseEvent(unsigned long inId, COMMANDERS_EVENT_TYPE inEvent = COMMANDERS_EVENT_MOVEPOSITIONID, int inData = 0)