Activity › Forums › Questions & Troubleshooting › OneButton.h library › Reply To: OneButton.h library
-
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