File tree Expand file tree Collapse file tree 2 files changed +22
-21
lines changed Expand file tree Collapse file tree 2 files changed +22
-21
lines changed Original file line number Diff line number Diff line change @@ -106,17 +106,19 @@ const PinName digitalPin[] = {
106
106
PA_13, // D75
107
107
PA_9, // D76
108
108
PC_9, // D77
109
- PC_7, // D78
110
- // Duplicated to have A0-A5 as F407 do not have Uno like connector
111
- // and to be aligned with PinMap_ADC
112
- PC_2, // D79/A0 = D1
113
- PC_4, // D80/A1 = D6
114
- PB_0, // D81/A2 = D7
115
- PC_1, // D82/A3 = D39
116
- PC_3, // D83/A4 = D40
117
- PA_1, // D84/A5 = D41
118
- PC_5, // D85/A6 = D45
119
- PB_1 // D86/A7 = D46
109
+ PC_7 // D78
110
+ };
111
+
112
+ // Analog (Ax) pin number array
113
+ const uint32_t analogInPin[] = {
114
+ 1 , // A0
115
+ 6 , // A1
116
+ 7 , // A2
117
+ 39 , // A3
118
+ 40 , // A4
119
+ 41 , // A5
120
+ 45 , // A6
121
+ 46 // A7
120
122
};
121
123
122
124
#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ extern "C" {
29
29
30
30
//P1 connector Right side
31
31
#define PC0 0
32
- #define PC2 1 // A0
32
+ #define PC2 A0
33
33
#define PA0 2
34
34
#define PA2 3
35
35
#define PA4 4
36
36
#define PA6 5
37
- #define PC4 6 // A1
38
- #define PB0 7 // A2
37
+ #define PC4 A1
38
+ #define PB0 A2
39
39
#define PB2 8
40
40
#define PE8 9
41
41
#define PE10 10
@@ -69,14 +69,14 @@ extern "C" {
69
69
#define PC8 37
70
70
#define PC6 38
71
71
//P1 Connector Left Side
72
- #define PC1 39 // A3
73
- #define PC3 40 // A4
74
- #define PA1 41 // A5
72
+ #define PC1 A3
73
+ #define PC3 A4
74
+ #define PA1 A5
75
75
#define PA3 42
76
76
#define PA5 43
77
77
#define PA7 44
78
- #define PC5 45 // A6
79
- #define PB1 46 // A7
78
+ #define PC5 A6
79
+ #define PB1 A7
80
80
#define PE7 47
81
81
#define PE9 48
82
82
#define PE11 49
@@ -112,10 +112,9 @@ extern "C" {
112
112
#define PC7 78
113
113
114
114
// This must be a literal
115
- #define NUM_DIGITAL_PINS 87
115
+ #define NUM_DIGITAL_PINS 79
116
116
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
117
117
#define NUM_ANALOG_INPUTS 8
118
- #define NUM_ANALOG_FIRST 79
119
118
120
119
// On-board LED pin number
121
120
#define LED_BUILTIN PD12
You can’t perform that action at this time.
0 commit comments