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[] = {
106106 PA_13, // D75
107107 PA_9, // D76
108108 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
120122};
121123
122124#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ extern "C" {
2929
3030//P1 connector Right side
3131#define PC0 0
32- #define PC2 1 // A0
32+ #define PC2 A0
3333#define PA0 2
3434#define PA2 3
3535#define PA4 4
3636#define PA6 5
37- #define PC4 6 // A1
38- #define PB0 7 // A2
37+ #define PC4 A1
38+ #define PB0 A2
3939#define PB2 8
4040#define PE8 9
4141#define PE10 10
@@ -69,14 +69,14 @@ extern "C" {
6969#define PC8 37
7070#define PC6 38
7171//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
7575#define PA3 42
7676#define PA5 43
7777#define PA7 44
78- #define PC5 45 // A6
79- #define PB1 46 // A7
78+ #define PC5 A6
79+ #define PB1 A7
8080#define PE7 47
8181#define PE9 48
8282#define PE11 49
@@ -112,10 +112,9 @@ extern "C" {
112112#define PC7 78
113113
114114// This must be a literal
115- #define NUM_DIGITAL_PINS 87
115+ #define NUM_DIGITAL_PINS 79
116116// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
117117#define NUM_ANALOG_INPUTS 8
118- #define NUM_ANALOG_FIRST 79
119118
120119// On-board LED pin number
121120#define LED_BUILTIN PD12
You can’t perform that action at this time.
0 commit comments