File tree Expand file tree Collapse file tree 2 files changed +38
-36
lines changed Expand file tree Collapse file tree 2 files changed +38
-36
lines changed Original file line number Diff line number Diff line change @@ -73,24 +73,27 @@ const PinName digitalPin[] = {
73
73
PB_12, // D43 - SPI SS
74
74
PB_13, // D44 - SPI SCLK
75
75
PB_14, // D45 - SPI MISO
76
- PB_15, // D46 - SPI MOSI
77
- // Duplicated pins in order to be aligned with PinMap_ADC
78
- PC_0, // D47/A0 = D0
79
- PC_1, // D48/A1 = D1
80
- PC_2, // D49/A2 = D2
81
- PC_3, // D50/A3 = D3
82
- PA_0, // D51/A4 = D4
83
- PA_1, // D52/A5 = D5
84
- PA_2, // D53/A6 = D6
85
- PA_3, // D54/A7 = D7
86
- PA_4, // D55/A8 = D8
87
- PA_5, // D56/A9 = D9
88
- PA_6, // D57/A10 = D10
89
- PA_7, // D58/A11 = D11
90
- PC_4, // D59/A12 = D12
91
- PC_5, // D60/A13 = D13
92
- PB_0, // D61/A14 = D14
93
- PB_1 // D62/A15 = D15
76
+ PB_15 // D46 - SPI MOSI
77
+ };
78
+
79
+ // Analog (Ax) pin number array
80
+ const uint32_t analogInPin[] = {
81
+ 1 , // A0
82
+ 2 , // A1
83
+ 3 , // A2
84
+ 4 , // A3
85
+ 5 , // A4
86
+ 6 , // A5
87
+ 7 , // A6
88
+ 8 , // A7
89
+ 9 , // A8
90
+ 10 , // A9
91
+ 11 , // A10
92
+ 12 , // A11
93
+ 13 , // A12
94
+ 14 , // A13
95
+ 15 , // A14
96
+ 16 // A15
94
97
};
95
98
96
99
#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -29,22 +29,22 @@ extern "C" {
29
29
30
30
// P1 connector
31
31
#define PC13 0
32
- #define PC0 1 // A0
33
- #define PC1 2 // A1
34
- #define PC2 3 // A2
35
- #define PC3 4 // A3
36
- #define PA0 5 // A4/ User button
37
- #define PA1 6 // A5
38
- #define PA2 7 // A6
39
- #define PA3 8 // A7
40
- #define PA4 9 // A8
41
- #define PA5 10 // A9
42
- #define PA6 11 // A10
43
- #define PA7 12 // A11
44
- #define PC4 13 // A12
45
- #define PC5 14 // A13
46
- #define PB0 15 // A14
47
- #define PB1 16 // A15
32
+ #define PC0 A0
33
+ #define PC1 A1
34
+ #define PC2 A2
35
+ #define PC3 A3
36
+ #define PA0 A4 // User button
37
+ #define PA1 A5
38
+ #define PA2 A6
39
+ #define PA3 A7
40
+ #define PA4 A8
41
+ #define PA5 A9
42
+ #define PA6 A10
43
+ #define PA7 A11
44
+ #define PC4 A12
45
+ #define PC5 A13
46
+ #define PB0 A14
47
+ #define PB1 A15
48
48
#define PB2 17
49
49
// P2 connector
50
50
#define PC6 18
@@ -79,10 +79,9 @@ extern "C" {
79
79
#define PB15 46 // SPI MOSI
80
80
81
81
// This must be a literal
82
- #define NUM_DIGITAL_PINS 63
82
+ #define NUM_DIGITAL_PINS 47
83
83
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
84
84
#define NUM_ANALOG_INPUTS 16
85
- #define NUM_ANALOG_FIRST 47
86
85
87
86
// On-board LED pin number
88
87
#define LED_BUILTIN PC9
You can’t perform that action at this time.
0 commit comments