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 @@ -80,24 +80,27 @@ const PinName digitalPin[] = {
8080 PD_6, PD_7,
8181 PC_7, PC_8,
8282 PD_15, PC_6,
83- PC_13, PA_15, // LED and Button pins - not broken out on the board
84- // Analog pins
85- PA_0,
86- PA_1,
87- PA_2,
88- PA_3,
89- PA_4,
90- PA_5,
91- PA_6,
92- PA_7,
93- PB_0,
94- PB_1,
95- PC_0,
96- PC_1,
97- PC_2,
98- PC_3,
99- PC_4,
100- PC_5
83+ PC_13, PA_15 // LED and Button pins - not broken out on the board
84+ };
85+
86+ // Analog (Ax) pin number array
87+ const uint32_t analogInPin[] = {
88+ 30 , // A0
89+ 32 , // A1
90+ 31 , // A2
91+ 27 , // A3
92+ 28 , // A4
93+ 26 , // A5
94+ 25 , // A6
95+ 23 , // A7
96+ 22 , // A8
97+ 19 , // A9
98+ 35 , // A10
99+ 36 , // A11
100+ 37 , // A12
101+ 29 , // A13
102+ 24 , // A14
103+ 21 // A15
101104};
102105
103106#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -58,25 +58,25 @@ extern "C" {
5858#define PE11 16
5959#define PE10 17
6060#define PE9 18
61- #define PB1 19
61+ #define PB1 A9
6262#define PB2 20
63- #define PC5 21
64- #define PB0 22
65- #define PA7 23
66- #define PC4 24
67- #define PA6 25
68- #define PA5 26
69- #define PA3 27
70- #define PA4 28
71- #define PC3 29
72- #define PA0 30
73- #define PA2 31
74- #define PA1 32
63+ #define PC5 A15
64+ #define PB0 A8
65+ #define PA7 A7
66+ #define PC4 A14
67+ #define PA6 A6
68+ #define PA5 A5
69+ #define PA3 A3
70+ #define PA4 A4
71+ #define PC3 A13
72+ #define PA0 A0
73+ #define PA2 A2
74+ #define PA1 A1
7575#define PD13 33
7676#define PD14 34
77- #define PC0 35
78- #define PC1 36
79- #define PC2 37
77+ #define PC0 A10
78+ #define PC1 A11
79+ #define PC2 A12
8080// Right Side
8181#define PA12 38
8282#define PA11 39
@@ -118,10 +118,9 @@ extern "C" {
118118#define PA15 75
119119
120120// This must be a literal
121- #define NUM_DIGITAL_PINS 92
121+ #define NUM_DIGITAL_PINS 76
122122// This must be a literal with a value less than or equal to MAX_ANALOG_INPUTS
123123#define NUM_ANALOG_INPUTS 16
124- #define NUM_ANALOG_FIRST 76
125124
126125// On-board LED pin number
127126#define LED_D1 PC13
You can’t perform that action at this time.
0 commit comments