Hi!
I need to put an I / O pin on Atmega328p in high impedance state or tri-state buffer. The solution is put the I/O pin as an input (pinMode()). However the datasheet claims the need of configurate the three register bits: DDxn, PORTxn, and PINxn.
What is the way in Arduino IDE? Is only needed write: pinMode(pin, INPUT) ?
What is the way in Arduino IDE? Is only needed write: pinMode(pin, INPUT) ?
Yes, that will do it.
Thank´s!
PerryBebbington:
Yes, that will do it.
Thank´s!