File tree 2 files changed +24
-23
lines changed
variants/MAPLEMINI_F103CB
2 files changed +24
-23
lines changed Original file line number Diff line number Diff line change @@ -72,18 +72,20 @@ const PinName digitalPin[] = {
72
72
// Other
73
73
PB_8, // D32 - BOOT0 - User buttons
74
74
PB_1, // D33 - LED
75
- PB_9, // D34 - USB DISC
76
- // Duplicated pins to avoid issue with analogRead
77
- // A0 have to be greater than NUM_ANALOG_INPUTS
78
- PB_0, // D35/A0 = D3
79
- PA_7, // D36/A1 = D4
80
- PA_6, // D37/A2 = D5
81
- PA_5, // D38/A3 = D6
82
- PA_4, // D39/A4 = D7
83
- PA_3, // D40/A5 = D8
84
- PA_2, // D41/A6 = D9
85
- PA_1, // D42/A7 = D10
86
- PA_0 // D43/A8 = D11
75
+ PB_9 // D34 - USB DISC
76
+ };
77
+
78
+ // Analog (Ax) pin number array
79
+ const uint32_t analogInPin[] = {
80
+ 3 , // A0
81
+ 4 , // A1
82
+ 5 , // A2
83
+ 6 , // A3
84
+ 7 , // A4
85
+ 8 , // A5
86
+ 9 , // A6
87
+ 10 , // A7
88
+ 11 // A8
87
89
};
88
90
89
91
#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -42,15 +42,15 @@ extern "C" {
42
42
#define PB11 0
43
43
#define PB10 1
44
44
#define PB2 2
45
- #define PB0 3 // A0
46
- #define PA7 4 // A1
47
- #define PA6 5 // A2
48
- #define PA5 6 // A3
49
- #define PA4 7 // A4
50
- #define PA3 8 // A5
51
- #define PA2 9 // A6
52
- #define PA1 10 // A7
53
- #define PA0 11 // A8
45
+ #define PB0 A0
46
+ #define PA7 A1
47
+ #define PA6 A2
48
+ #define PA5 A3
49
+ #define PA4 A4
50
+ #define PA3 A5
51
+ #define PA2 A6
52
+ #define PA1 A7
53
+ #define PA0 A8
54
54
#define PC15 12
55
55
#define PC14 13
56
56
#define PC13 14
@@ -78,10 +78,9 @@ extern "C" {
78
78
#define PB9 34 // USB DISC
79
79
80
80
// This must be a literal
81
- #define NUM_DIGITAL_PINS 44
81
+ #define NUM_DIGITAL_PINS 35
82
82
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
83
83
#define NUM_ANALOG_INPUTS 9
84
- #define NUM_ANALOG_FIRST 35
85
84
86
85
// On-board LED pin number
87
86
#define LED_BUILTIN PB1
You can’t perform that action at this time.
0 commit comments