We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e68d2 commit 7354f0eCopy full SHA for 7354f0e
hardware/arduino/cores/arduino/wiring_analog.c
@@ -43,6 +43,8 @@ int analogRead(uint8_t pin)
43
44
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
45
if (pin >= 54) pin -= 54; // allow for channel or pin numbers
46
+#elif defined(__AVR_ATmega32U4__)
47
+ if (pin >= 18) pin -= 18; // allow for channel or pin numbers
48
#else
49
if (pin >= 14) pin -= 14; // allow for channel or pin numbers
50
#endif
0 commit comments