Arudino mega PINS confusion

What are the exact PIN names of arudino mega, i mean like when i use Analog in mega, i just say pin 2 as ‘2’ not A2 but it still works , in that case what about the digital pin 2?
I think this question might have already been asked but i was unable to find anything ,when i search for this i am getting analog pin vs digital pin

That's only because the code is a bit smart :wink: As long as you call analogRead() with a number that can refer to a analog port aka has a Ax variant it will use that. Because it knows you don't mean a digital pin.

So calling analogRead() with 0, A0 or 54 is all the same :slight_smile:

oh, thanks for the quick reply