Is it possible to change pin operation from output to input within the Arduino loop (event-driven)?
I would like to change the operation of a couple of Arduino pins from input to output during execution of the Arduino loop in an event-driven way. Is this possible please?