@@ -45,19 +45,19 @@ const static uint8_t MISO = 17;
45
45
const static uint8_t SCK = 15 ;
46
46
47
47
// Mapping of analog pins as digital I/O
48
- // A6-A11 are already shared with digital pins
49
- const static uint8_t A0 = 14 ;
50
- const static uint8_t A1 = 15 ;
51
- const static uint8_t A2 = 16 ;
52
- const static uint8_t A3 = 17 ;
53
- const static uint8_t A4 = 18 ;
54
- const static uint8_t A5 = 19 ;
55
- const static uint8_t A6 = 4 ;
56
- const static uint8_t A7 = 6 ;
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 ;
48
+ // A6-A11 share with digital pins
49
+ const static uint8_t A0 = 18 ;
50
+ const static uint8_t A1 = 19 ;
51
+ const static uint8_t A2 = 20 ;
52
+ const static uint8_t A3 = 21 ;
53
+ const static uint8_t A4 = 22 ;
54
+ const static uint8_t A5 = 23 ;
55
+ const static uint8_t A6 = 24 ; // D4
56
+ const static uint8_t A7 = 25 ; // D6
57
+ const static uint8_t A8 = 26 ; // D8
58
+ const static uint8_t A9 = 27 ; // D9
59
+ const static uint8_t A10 = 28 ; // D10
60
+ const static uint8_t A11 = 29 ; // D12
61
61
62
62
// __AVR_ATmega32U4__ has an unusual mapping of pins to channels
63
63
extern const uint8_t PROGMEM analog_pin_to_channel_PGM [];
0 commit comments