Activity › Forums › Questions & Troubleshooting › OneButton.h library
-
OneButton.h library
-
-
Hi Peter
Yes I did connect to 24V but still not working
now my issue is I cant upload anything giving me a lot of errors
thanks
-
-
Hi,
please note that the voltage divisor at screw terminals works as an internal pull-down resistor. So you should connect the button between the terminal and the supply voltage. Then it should work, but – you should not activate internal pull-ups in the microcontroller, and it will be inverted (HIGH when pushed, LOW when pulled).
You need to init the buttons in this way
OneButton button(PIN_INPUT, false, false);
Best regards,
Lukas
Viewing 1 - 2 of 2 replies
Log in to reply.