File tree 2 files changed +26
-18
lines changed 2 files changed +26
-18
lines changed Original file line number Diff line number Diff line change @@ -87,12 +87,21 @@ const PinName digitalPin[] = {
87
87
PA_4, // D55/A2
88
88
PB_1, // D56/A3
89
89
PB_11, // D57/A4
90
- PB_12, // D58/A5
91
- // Duplicated pins in order to be aligned with PinMap_ADC
92
- PA_7, // D59/A6 = D11
93
- PA_6, // D60/A7 = D12
94
- PB_2, // D61/A8 = D45
95
- PB_10 // D62/A9 = D48
90
+ PB_12 // D58/A5
91
+ };
92
+
93
+ // Analog (Ax) pin number array
94
+ const uint32_t analogInPin[] = {
95
+ 53 , // A0
96
+ 54 , // A1
97
+ 55 , // A2
98
+ 56 , // A3
99
+ 57 , // A4
100
+ 58 , // A5
101
+ 11 , // A6
102
+ 12 , // A7
103
+ 45 , // A8
104
+ 48 // A9
96
105
};
97
106
98
107
#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ extern "C" {
38
38
#define PA9 8
39
39
#define PC7 9
40
40
#define PB0 10
41
- #define PA7 11 // A6
42
- #define PA6 12 // A7
41
+ #define PA7 A6
42
+ #define PA6 A7
43
43
#define PA5 13 // LED
44
44
#define PB9 14
45
45
#define PB8 15
@@ -77,26 +77,25 @@ extern "C" {
77
77
#define PA12 42
78
78
#define PC1 43
79
79
#define PC0 44
80
- #define PB2 45 // A8
80
+ #define PB2 A8
81
81
#define PB6 46
82
82
#define PB15 47
83
- #define PB10 48 // A9
83
+ #define PB10 A9
84
84
#define PB13 49
85
85
#define PA2 50
86
86
#define PD8 51
87
87
#define PD9 52
88
- #define PA0 53 // A0
89
- #define PA1 54 // A1
90
- #define PA4 55 // A2
91
- #define PB1 56 // A3
92
- #define PB11 57 // A4
93
- #define PB12 58 // A5
88
+ #define PA0 A0
89
+ #define PA1 A1
90
+ #define PA4 A2
91
+ #define PB1 A3
92
+ #define PB11 A4
93
+ #define PB12 A5
94
94
95
95
// This must be a literal
96
- #define NUM_DIGITAL_PINS 63
96
+ #define NUM_DIGITAL_PINS 59
97
97
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
98
98
#define NUM_ANALOG_INPUTS 10
99
- #define NUM_ANALOG_FIRST 53
100
99
101
100
// On-board LED pin number
102
101
#define LED_BUILTIN 13
You can’t perform that action at this time.
0 commit comments