Controllino Mini (UNO). Digital Output Pin to Input

I believe the Controllino MINI is based on the Arduino UNO board.

Has anyone managed to assign digital output pins CONTROLLINO_D4 or CONTROLLINO_D5 to be INPUT pins. Note. These are arduino pins 8 and 9

I've tried the obvious ie.

pinMode(CONTROLLINO_D4, INPUT)

but this does not appear to work.

Try pinMode(D4,INPUT);

The problem is "D4" is not defined anywhere so that does not compile

Are you using the screw terminals or the 26 pin connector?
The screw terminals are only OUTPUTS.
The pins on the 26 pin connector can be either INPUT or OUTPUT
You can also use pinMode(8, INPUT) instead of pinMode(CONTROLLINO_D4, INPUT)

Then go ahead and do that.

byte CONTROLLINO_D4 = 4;

void setup()
{
  pinMode(CONTROLLINO_D4, INPUT);
}

It's already correctly defined as pin 8

@jim-p
Hey, guy, talk to the OP. Got it?

As you wish

Don't do what @anon85221860 suggested as it make no sense since CONTROLLINO_D4 is already correctly defined as pin 8
Also ignore @gilshultz suggestion for the same reason

Placing a wire in a screw terminal, as @jim-p suggests, won't get your sketch to compile any better.

I can compile a program using
pinMode(CONTROLLINO_D4, INPUT)
and it will input signals on pin8

Please ignore @anon85221860 suggestions about placing wires on the screw terminals

It's not me, it's Grampy. Maybe he's having a stroke.

Hey guy talk to the OP, Got it!!

Good luck with the aneurysm.

@rangers99
Have you followed the instructions here for setting up the IDE for the Controllino Mini?
Setting up the Arduino IDE for Controllino Mini

You may have selected Uno as the board in the IDE and that will not work.

I believe your problem is that you haven't installed the necessary library for your Controllino Mini. Try the suggestion in post #15.

See post #4