What's a quick command that would set pinMode to input or output depending on true/false statement? If it's true, I want to set output but if it's false then input.
Something like pinMode(6, variable); ? (where variable is the container with 0 or 1 value stored) what I need is to make the pins floating when it's false so the CPU will not interfere with the data on the line, and to set output to inject data when it's true.