Activity Forums Questions & Troubleshooting OneButton.h library

  • OneButton.h library

  • Peter

    Member
    September 24, 2021 at 7:13 am

    Hello

    Did you powerup the Controllino Mini?

    • pukindat

      Member
      September 28, 2021 at 2:06 am

      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

  • Lukas

    Member
    September 30, 2021 at 9:15 am

    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.

Original Post
0 of 0 posts June 2018
Now