File tree Expand file tree Collapse file tree 2 files changed +26
-13
lines changed Expand file tree Collapse file tree 2 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,20 @@ const PinName digitalPin[] = {
8080 PB_1, // A9
8181};
8282
83+ // Analog (Ax) pin number array
84+ const uint32_t analogInPin[] = {
85+ 2 , // A0
86+ 1 , // A1
87+ 0 , // A2
88+ 11 , // A3
89+ 12 , // A4
90+ 13 , // A5
91+ 14 , // A6
92+ 15 , // A7
93+ 16 , // A8
94+ 17 // A9
95+ };
96+
8397#ifdef __cplusplus
8498}
8599#endif
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ extern "C" {
4040
4141// Right side
4242
43- #define PA2 0
44- #define PA1 1 // LED
45- #define PA0 2
43+ #define PA2 A2
44+ #define PA1 A1 // LED
45+ #define PA0 A0
4646#define PA14 3
4747#define PA13 4
4848#define PB7 5
@@ -52,25 +52,24 @@ extern "C" {
5252#define PB3 9
5353#define PA15 10
5454// Left side
55- #define PA3 11
56- #define PA4 12
57- #define PA5 13
58- #define PA6 14
59- #define PA7 15
60- #define PB0 16
61- #define PB1 17
62- #define PB2 18//BOOT1
55+ #define PA3 A3
56+ #define PA4 A4
57+ #define PA5 A5
58+ #define PA6 A6
59+ #define PA7 A7
60+ #define PB0 A8
61+ #define PB1 A9
62+ #define PB2 18 //BOOT1
6363#define PA8 19
6464#define PA9 20
6565#define PA10 21
6666#define PA11 22
6767#define PA12 23
6868
6969// This must be a literal
70- #define NUM_DIGITAL_PINS 34
70+ #define NUM_DIGITAL_PINS 24
7171// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
7272#define NUM_ANALOG_INPUTS 10
73- #define NUM_ANALOG_FIRST 24
7473
7574// On-board LED pin number
7675#define LED_BUILTIN PA1
You can’t perform that action at this time.
0 commit comments