File tree Expand file tree Collapse file tree 2 files changed +27
-25
lines changed Expand file tree Collapse file tree 2 files changed +27
-25
lines changed Original file line number Diff line number Diff line change @@ -65,19 +65,22 @@ const PinName digitalPin[] = {
65
65
PA_9,
66
66
PA_10,
67
67
PA_11,
68
- PA_12,
68
+ PA_12
69
69
// GND
70
- // defines so that analog pins align to arduino mappings
71
- PA_0, // A0
72
- PA_1,
73
- PA_2,
74
- PA_3,
75
- PA_4,
76
- PA_5,
77
- PA_6,
78
- PA_7,
79
- PB_0,
80
- PB_1, // A9
70
+ };
71
+
72
+ // Analog (Ax) pin number array
73
+ const uint32_t analogInPin[] = {
74
+ 2 , // A0
75
+ 1 , // A1
76
+ 0 , // A2
77
+ 11 , // A3
78
+ 12 , // A4
79
+ 13 , // A5
80
+ 14 , // A6
81
+ 15 , // A7
82
+ 16 , // A8
83
+ 17 // A9
81
84
};
82
85
83
86
#ifdef __cplusplus
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