File tree 5 files changed +12
-0
lines changed
5 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,9 @@ extern "C" {
77
77
#define LED_GREEN LED_BUILTIN
78
78
79
79
// On-board user button
80
+ #ifndef USER_BTN
80
81
#define USER_BTN PC13
82
+ #endif
81
83
82
84
// SPI definitions
83
85
#define PIN_SPI_SS PA4
Original file line number Diff line number Diff line change @@ -87,11 +87,15 @@ extern "C" {
87
87
#define NUM_ANALOG_INPUTS 16
88
88
89
89
// On-board LED pin number
90
+ #ifndef LED_BUILTIN
90
91
#define LED_BUILTIN PA5
92
+ #endif
91
93
#define LED_GREEN LED_BUILTIN
92
94
93
95
// On-board user button
96
+ #ifndef USER_BTN
94
97
#define USER_BTN PC13
98
+ #endif
95
99
96
100
// SPI definitions
97
101
#define PIN_SPI_SS PA4
Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ extern "C" {
95
95
#define LED_GREEN LED_BUILTIN
96
96
97
97
// On-board user button
98
+ #ifndef USER_BTN
98
99
#define USER_BTN PC13
100
+ #endif
99
101
100
102
// Timer Definitions
101
103
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ extern "C" {
78
78
#define LED_GREEN LED_BUILTIN
79
79
80
80
// On-board user button
81
+ #ifndef USER_BTN
81
82
#define USER_BTN PC13
83
+ #endif
82
84
83
85
// SPI definitions
84
86
#define PIN_SPI_SS PA4
Original file line number Diff line number Diff line change @@ -93,7 +93,9 @@ extern "C" {
93
93
#define LED_GREEN LED_BUILTIN
94
94
95
95
// On-board user button
96
+ #ifndef USER_BTN
96
97
#define USER_BTN PC13
98
+ #endif
97
99
98
100
// SPI definitions
99
101
#define PIN_SPI_SS PA4
You can’t perform that action at this time.
0 commit comments