From 45736950118f8f9eb635b738c5718f664b366e5d Mon Sep 17 00:00:00 2001 From: SooDragon Date: Sat, 13 Apr 2024 20:38:37 +0900 Subject: [PATCH] fix: add variable for support internal built in switch fix: add variable for support internal built in switch --- variants/Geekble_ESP32C3/pins_arduino.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/variants/Geekble_ESP32C3/pins_arduino.h b/variants/Geekble_ESP32C3/pins_arduino.h index bd32db1e67c..c6801fc4124 100644 --- a/variants/Geekble_ESP32C3/pins_arduino.h +++ b/variants/Geekble_ESP32C3/pins_arduino.h @@ -3,9 +3,13 @@ #include -static const uint8_t LED_BUILTIN = 10; -#define BUILTIN_LED LED_BUILTIN // backward compatibility -#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN +static const uint8_t LED_BUILTIN = 10; +#define BUILTIN_LED LED_BUILTIN // backward compatibility +#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN + +static const uint8_t SW_BUILTIN = 9; +#define BUILTIN_SW SW_BUILTIN // backward compatibility +#define SW_BUILTIN SW_BUILTIN // allow testing #ifdef SW_BUILTIN static const uint8_t TX = 21; static const uint8_t RX = 20;