File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,11 @@ extern "C" {
93
93
#endif
94
94
#define LED_GREEN LED_BUILTIN
95
95
96
+ // On-board user button
97
+ #ifndef USER_BTN
98
+ #define USER_BTN PC13
99
+ #endif
100
+
96
101
// Override default Arduino configuration
97
102
// SPI Definitions
98
103
#define PIN_SPI_SS PA4
Original file line number Diff line number Diff line change @@ -153,6 +153,11 @@ extern "C" {
153
153
#define LED_BUILTIN PC13
154
154
#endif
155
155
156
+ // On-board user button
157
+ #ifndef USER_BTN
158
+ #define USER_BTN PB1
159
+ #endif
160
+
156
161
// SPI Definitions
157
162
#ifdef ARDUINO_VCCGND_F103ZET6
158
163
#define PIN_SPI_SS PA15
Original file line number Diff line number Diff line change @@ -74,17 +74,15 @@ extern "C" {
74
74
// On-board LED pin number
75
75
#ifdef ARDUINO_BLACKPILL_F411CE
76
76
#define LED_BUILTIN PC13
77
- #endif
78
- #ifndef LED_BUILTIN
77
+ #elif !defined(LED_BUILTIN )
79
78
#define LED_BUILTIN PA5
80
79
#endif
81
80
#define LED_GREEN LED_BUILTIN
82
81
83
82
// On-board user button
84
83
#ifdef ARDUINO_BLACKPILL_F411CE
85
84
#define USER_BTN PA0
86
- #endif
87
- #if !defined(USER_BTN )
85
+ #elif !defined(USER_BTN )
88
86
#define USER_BTN PC13
89
87
#endif
90
88
You can’t perform that action at this time.
0 commit comments