Hi, very new to Arduinos and I'm working on a project with a mega that fits onto a PCB inside a rack mount case. I'd like to have a usb port mounted to the case so I can update the arduino sketch without having to open everything up.
I was wondering if arduino i/o pins can be configured as a USB port? Originally I was thinking to just plug in a USB extension cable but space is very tight inside the case and it would interfere with other headers. I'd like to bring the pins out to a better location on the PCB with a smaller connector.
Alternatively I could just remove the USB connector and solder on a new, smaller header but I'd rather do it with i/o pins if possible.