Pull UP in Mode Switch Manager

Hi guys,

can I declare the switch that I will use in the switch mode manager as INPUT_PULLUP in the setup() ?? thanks!

Are you talking about Nick Gammon’s SwitchManager?

Yes, Mr Gammon's

Mr. Gammon uses INPUT_PULLUP in his library:

void begin (const int pinNumber, handlerFunction f)
pinNumber_ = pinNumber ;
f_ = f ;
if (pinNumber_ != noSwitch)
pinMode (pinNumber_, INPUT_PULLUP) ;
} // end of begin