Does anyone know what the digital equivalent of analog pins 0-15 on a Mega 2560 is? I need some more digital pins and I know that on the Uno, analog pins 0-5 are digital 14-19. So is there something similar on the Mega?
You do know that you can just use the analog pin name in a digital statement, as in
digitalWrite(A0, HIGH); pinMode(A0, OUTPUT); That works for both a Uno and Mega board without having to remember what the digital pin name is for the same physical pin.
But if you do want the digial alias name for the analog pin numbers then this doc should help. Arduino digital pin names are is the far left column.https://spreadsheets.google.com/pub?key=rtHw_R6eVL140KS9_G8GPkA&gid=0