I would like to know whether it is possible to use pin 0 (RX) / pin 1 (TX) on an ATMEGA328P chipset (Pro mini arduino board 16MHz / 5V) as regular digital input ports at the same time.
My problem is the following : Since I run out of available ports on the arduino board, I would like to use port 0 and port 1 to connect two push buttons.
The issue is that these two ports are already used as TX/RX serial ports for the USB link to upload sketchs / print on the console for debugging.
When I connect the board to the PC to update sketch and debug it, the push buttons don't work as the port is "seen" as always ON.
I could imagine that once the sketch has been validated and I don't need USB link any longer, I could upload a final sketch with TX / RX ports as INPUT and push button would work...
My concern is : if I do that, would I be stuck afterwards when I want to use USB connection again? (TX not responding and impossible to communicate with the chipset?)
Thanks again for your support.