MemberSeptember 30, 2021 at 9:15 am
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);