Arduino Mega - Communication Pin as INPUT or OUTPUT

Hello, Thank you for your answer !! :smiley:

For INPUT i will connect a resistense to ground and a button to sent 5v when i push it

For OUTPUT i will activate a 5v Relay

By the way, i'm using the Serial.print to see some information in my PC's the screen.
The problem here is when i use Pin 0 and 1 from communication because i'm using the Serial port, i can't use Pins 0 and 1 as INPUT/OUTPUT if i'm using the Serial Port at the same time.

The question here is: If i use the others TX and RX as INPUT/OUTPUT, will i have problems with the Serial comunication to the PC's screen?

Thank you !! :grin: