Arduino Mega - Communication Pin as INPUT or OUTPUT