Activity Forums Questions & Troubleshooting Software & Firmware Can’t Use CONTROLLINO_A4 or A5

  • Can’t Use CONTROLLINO_A4 or A5

  • cyremann

    Member
    August 31, 2019 at 3:59 pm

    I am trying to detect a button press on A4 (Controllino Mini), but it isn’t working for some reason.

    Just to check and make sure there wasn’t an issue with my code, I added this to the top:

    Code:


    pinMode(CONTROLLINO_A4, INPUT);
    if(digitalRead(CONTROLLINO_A5) == HIGH) { Serial.println(“Working”); };

    This doesn’t work for A4 or A5, but it works fine if I change the inputs to A0 through A3.

    The input light on the Controllino lights when it is active, but I can’t detect it in software.

    There must be something I’m missing, but for now I am at a loss. I’d appreciate any help.

  • mr-controllino

    Administrator
    October 7, 2019 at 7:33 am

    Hi,

    The anlaog inputs A4 + A5 are only analog inputs.

    So you can make a small IF loop to make it a digital input.

    regards

    Marco

Log in to reply.

Original Post
0 of 0 posts June 2018
Now