Arduino IDE compatibility with ATmega2561

Hello,

Thank's a lot for your answer.

It's when you use the number of the analogpin instead of A0. For exemple : "analogWrite(0,HIGH)"
ADC is from 0 to 7 , so if the user write 2 in the analogWrite , the compiler can find witch pin is it because : 2 < 8 => true so 46+2 => 48.

Thx