File tree 2 files changed +33
-16
lines changed
variants/BLUE_F407VE_Mini
2 files changed +33
-16
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,24 @@ const PinName digitalPin[] = {
149
149
PC_5
150
150
};
151
151
152
+ // Analog (Ax) pin number array
153
+ const uint32_t analogInPin[] = {
154
+ 7 , // A0
155
+ 8 , // A1
156
+ 49 , // A2
157
+ 50 , // A3
158
+ 9 , // A4
159
+ 51 , // A5
160
+ 12 , // A6
161
+ 54 , // A7
162
+ 5 , // A8
163
+ 47 , // A9
164
+ 6 , // A10
165
+ 48 , // A11
166
+ 11 , // A12
167
+ 53 // A13
168
+ };
169
+
152
170
#ifdef __cplusplus
153
171
}
154
172
#endif
Original file line number Diff line number Diff line change @@ -47,14 +47,14 @@ extern "C" {
47
47
#define PE4 2
48
48
#define PE6 3
49
49
#define PC14 4 // OSC32_IN
50
- #define PC0 5 // A8
51
- #define PC2 6 // A10
52
- #define PA0 7 // A0
53
- #define PA1 8 // A1
54
- #define PA4 9 // A4
50
+ #define PC0 A8
51
+ #define PC2 A10
52
+ #define PA0 A0
53
+ #define PA1 A1
54
+ #define PA4 A4
55
55
#define PA6 10
56
- #define PC4 11 // A12
57
- #define PB0 12 // A6
56
+ #define PC4 A12
57
+ #define PB0 A6
58
58
#define PB2 13
59
59
#define PE8 14
60
60
#define PE9 15
@@ -96,14 +96,14 @@ extern "C" {
96
96
#define PE5 44
97
97
#define PC13 45
98
98
#define PC15 46 // OSC32_OUT
99
- #define PC1 47 // A9
100
- #define PC3 48 // A11
101
- #define PA2 49 // A2
102
- #define PA3 50 // A3
103
- #define PA5 51 // A5
99
+ #define PC1 A9
100
+ #define PC3 A11
101
+ #define PA2 A2
102
+ #define PA3 A3
103
+ #define PA5 A5
104
104
#define PA7 52
105
- #define PC5 53 // A13
106
- #define PB1 54 // A7
105
+ #define PC5 A13
106
+ #define PB1 A7
107
107
#define PE7 55
108
108
#define PE10 56
109
109
#define PE12 57
@@ -135,10 +135,9 @@ extern "C" {
135
135
// GND
136
136
137
137
// This must be a literal
138
- #define NUM_DIGITAL_PINS 94
138
+ #define NUM_DIGITAL_PINS 80
139
139
// This must be a literal with a value less than or equal to MAX_ANALOG_INPUTS
140
140
#define NUM_ANALOG_INPUTS 14
141
- #define NUM_ANALOG_FIRST 80
142
141
143
142
// On-board LED pin number
144
143
#define LED_BUILTIN PB9
You can’t perform that action at this time.
0 commit comments