negotxj:
Can anyone tell me how to configure Genuino Mega 2560 Analog Pins A0-A15 to digital I/O?
For Arduino Uno i know that Analog Pin A0 is Pin 14, A1 is Pin 15 and so on. But for Mega i have no idea. Please advise. Thank you.
You can just use the A0 to A15 names.
Or, they're pin 54 to pin 69.
I just did this:-
void setup()
{
Serial.begin(115200);
for(int i=A0;i<=A15;i++)
Serial.println(i);
}
void loop(){}
It prints:-
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69