File tree 2 files changed +17
-11
lines changed
2 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,20 @@ const PinName digitalPin[] = {
54
54
PA_10, // D10 - SDA (RX UART Header)
55
55
PA_13, // D11 - SWDIO
56
56
PA_14, // D12 - SWCLK
57
+ // These two are only available on boards without a crystal:
58
+ PF_0,
59
+ PF_1,
57
60
// Duplicated pins in order to be aligned with PinMap_ADC
58
61
// A0 have to be greater than NUM_ANALOG_INPUTS
59
- PA_0, // D13 /A0 ~ D0
60
- PA_1, // D14 /A1 ~ D1
61
- PA_2, // D15 /A2 ~ D2
62
- PA_3, // D16 /A3 ~ D3
63
- PA_4, // D17 /A4 ~ D4
64
- PA_5, // D18 /A5 ~ D5
65
- PA_6, // D19 /A6 ~ D6
66
- PA_7, // D20 /A7 ~ D7
67
- PB_1 // D21 /A8 ~ D8
62
+ PA_0, // D15 /A0 ~ D0
63
+ PA_1, // D16 /A1 ~ D1
64
+ PA_2, // D17 /A2 ~ D2
65
+ PA_3, // D18 /A3 ~ D3
66
+ PA_4, // D19 /A4 ~ D4
67
+ PA_5, // D20 /A5 ~ D5
68
+ PA_6, // D21 /A6 ~ D6
69
+ PA_7, // D22 /A7 ~ D7
70
+ PB_1 // D23 /A8 ~ D8
68
71
};
69
72
70
73
#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -54,12 +54,15 @@ extern "C" {
54
54
#define PA10 10 //D10 - SDA (RX UART header)
55
55
#define PA13 11 //D11 - SWDIO
56
56
#define PA14 12 //D12 - SWCLK
57
+ // Boards without a crystal can use these pins as well:
58
+ #define PF0 13
59
+ #define PF1 14
57
60
58
61
// This must be a literal with the same value as PEND
59
- #define NUM_DIGITAL_PINS 22
62
+ #define NUM_DIGITAL_PINS 24
60
63
// This must be a literal with a value less than or equal to MAX_ANALOG_INPUTS
61
64
#define NUM_ANALOG_INPUTS 9
62
- #define NUM_ANALOG_FIRST 13
65
+ #define NUM_ANALOG_FIRST 15
63
66
64
67
// On-board LED pin number
65
68
#define LED_BUILTIN PA4
You can’t perform that action at this time.
0 commit comments