CONTROLLINO_Dx pins as input

Stuck? We'll be happy to help!
Post Reply
duccio
Posts: 2
Joined: Sun Jan 26, 2020 12:11 pm

CONTROLLINO_Dx pins as input

Post by duccio » Sat Feb 01, 2020 12:24 pm

Hello,

is it possible to use CONTROLLINO_Dx pins as input?

Example:

pinMode(CONTROLLINO_D22, INPUT);
digitalRead(CONTROLLINO_D22)

Thanks!

User avatar
Jarda
Posts: 17
Joined: Fri Dec 14, 2018 10:52 am

Re: CONTROLLINO_Dx pins as input

Post by Jarda » Mon Feb 17, 2020 3:51 pm

Hello,
Unfortunately it is not possible to use outputs on screw terminals D0-D23 as inputs.

But you can use corresponding pins on the pinheader with some limitations. First of all voltage level is 5V only, then you have to configure the processor port properly as input and not as output and you have to count with the fact, that logic HIGH will activate also the corresponding output on the screw terminal.

For example: D0 on the screw terminal is corresponding with Arduino pin 2 and this pin is located at pinheader X1.

Best Regards
Jarda

Post Reply