I use an arduino mega, I use all the pins, even tx/rx pins as digital I/O. Now I have a problem. While the I/O pins are connected, I can not communicate via USB with the arduino.
If I disconnect all the I/O, I still can program it. But the problem is, the arduino needs to communicate via USB with a raspberry while all the I/O is connected.
Anybody has had the same problem/ has a solution?