How can I re-route the physical pin mappings of the Arduino leonardo (atmega32u4)? I looked in the pins_arduino.h file but it seems to all be software used pins if that makes any sense ? I'm looking to just make a custom board I'm working on and make the pinout for it less confusing. Basically, I just want to change the number on the pin, nothing else.
The simplest way is to create #defines or const declarations in your own code, like
#define P1 3
and then use P1, P2, etc rather than the pin numbers directly. Any time you want to remap, change the defines in one place.
doh, shoulda thought of that thanks