From fef1bde428cfa03400b296a4cfe3bc5e1d0d93ae Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Mon, 2 Mar 2020 09:15:27 +0100 Subject: [PATCH] Define USER_BTN for BLACK PILL F411CE Thanks @BennehBoy Signed-off-by: Frederic Pillon --- variants/Generic_F411Cx/variant.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/variants/Generic_F411Cx/variant.h b/variants/Generic_F411Cx/variant.h index 5e925a2389..5219d5a03e 100644 --- a/variants/Generic_F411Cx/variant.h +++ b/variants/Generic_F411Cx/variant.h @@ -81,7 +81,10 @@ extern "C" { #define LED_GREEN LED_BUILTIN // On-board user button -#if !defined(USER_BTN) && !defined(ARDUINO_BLACKPILL_F411CE) +#ifdef ARDUINO_BLACKPILL_F411CE +#define USER_BTN PA0 +#endif +#if !defined(USER_BTN) #define USER_BTN PC13 #endif