Switching a pin direction from output to input

I have problems reading data when I make a pinMode(myPort, OUPUT) to pinMode(myPort, INPUT). I guess the problem is that I change the port pin from output to input.

Is it allowed to change the direction OUPUT to INPUT?

Hi, Arno.Waldmann

It depends on what device you use, can you provide your detailed questions?

Best regards
fenyi

I found the reason in the documentation. Many thanks for the technical contributions. I have adapted the library of SoftwareSerial (halfduplex inverted)) and it works.

1 Like

I have found the error and solved it.

1 Like

Hi Arno, I would like talk to you regarding your Xiao and FrSky project. Iā€™m from Hannover, Germany :slight_smile:

Hi Arno,
how can I contact you?