Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8e25e1

Browse files
committed
updated pins_arduino.h for Leonardo to reflect final mapping of A6-A11
1 parent 7c9d403 commit e8e25e1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

variants/leonardo/pins_arduino.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ const static uint8_t A4 = 18;
5454
const static uint8_t A5 = 19;
5555
const static uint8_t A6 = 4;
5656
const static uint8_t A7 = 6;
57-
const static uint8_t A8 = 9;
58-
const static uint8_t A9 = 10;
59-
const static uint8_t A10 = 12;
60-
const static uint8_t A11 = 8;
57+
const static uint8_t A8 = 8;
58+
const static uint8_t A9 = 9;
59+
const static uint8_t A10 = 10;
60+
const static uint8_t A11 = 12;
6161

6262
// __AVR_ATmega32U4__ has an unusual mapping of pins to channels
6363
extern const uint8_t PROGMEM analog_pin_to_channel_PGM[];
@@ -217,10 +217,10 @@ const uint8_t PROGMEM analog_pin_to_channel_PGM[12] = {
217217
0, // A5 PF0 ADC0
218218
8, // A6 D4 PD4 ADC8
219219
10, // A7 D6 PD7 ADC10
220-
12, // A8 D9 PB5 ADC12
221-
13, // A9 D10 PB6 ADC13
222-
9, // A10 D12 PD6 ADC9
223-
11 // A11 D8 PB4 ADC11
220+
11, // A8 D8 PB4 ADC11
221+
12, // A9 D9 PB5 ADC12
222+
13, // A10 D10 PB6 ADC13
223+
9 // A11 D12 PD6 ADC9
224224
};
225225

226226
#endif /* ARDUINO_MAIN */

0 commit comments

Comments
 (0)