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[] = {
80
80
PB_1, // A9
81
81
};
82
82
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
+
83
97
#ifdef __cplusplus
84
98
}
85
99
#endif
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ extern "C" {
40
40
41
41
// Right side
42
42
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
46
46
#define PA14 3
47
47
#define PA13 4
48
48
#define PB7 5
@@ -52,25 +52,24 @@ extern "C" {
52
52
#define PB3 9
53
53
#define PA15 10
54
54
// 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
63
63
#define PA8 19
64
64
#define PA9 20
65
65
#define PA10 21
66
66
#define PA11 22
67
67
#define PA12 23
68
68
69
69
// This must be a literal
70
- #define NUM_DIGITAL_PINS 34
70
+ #define NUM_DIGITAL_PINS 24
71
71
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
72
72
#define NUM_ANALOG_INPUTS 10
73
- #define NUM_ANALOG_FIRST 24
74
73
75
74
// On-board LED pin number
76
75
#define LED_BUILTIN PA1
You can’t perform that action at this time.
0 commit comments