Can't Use CONTROLLINO_A4 or A5

Post Reply
Posts: 1
Joined: Sat Aug 31, 2019 3:54 pm

Can't Use CONTROLLINO_A4 or A5

Post by cyremann » Sat Aug 31, 2019 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: Select all

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.

User avatar
Posts: 26
Joined: Thu Dec 13, 2018 3:07 pm

Re: Can't Use CONTROLLINO_A4 or A5

Post by Mr. CONTROLLINO » Mon Oct 07, 2019 7:33 am


The anlaog inputs A4 + A5 are only analog inputs.
So you can make a small IF loop to make it a digital input.


Post Reply