Skip to content

Commit 85a7a28

Browse files
committed
Define USER_BTN for BLACK PILL F411CE
Thanks @BennehBoy Signed-off-by: Frederic Pillon <[email protected]>
1 parent 8834ae2 commit 85a7a28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

variants/Generic_F411Cx/variant.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ extern "C" {
8181
#define LED_GREEN LED_BUILTIN
8282

8383
// On-board user button
84-
#if !defined(USER_BTN) && !defined(ARDUINO_BLACKPILL_F411CE)
84+
#ifdef ARDUINO_BLACKPILL_F411CE
85+
#define USER_BTN PA0
86+
#endif
87+
#if !defined(USER_BTN)
8588
#define USER_BTN PC13
8689
#endif
8790

0 commit comments

Comments
 (0)