From ca3b7e168c7973a1e56d91ab98742b3aa8ae5e5a Mon Sep 17 00:00:00 2001 From: Develo Date: Sat, 9 Nov 2019 21:45:21 -0300 Subject: [PATCH] Puts to rest the confusion about the builtin leds for nodemcu boards Given that most nodemcu boards are based on the ESP12 boards, the definition of the builtin led is now changed to 2. In addition, for those nodemcu boards that have an additional LED on the board connected to gpio16, an additional define is added called LED_BUILTIN_AUX. --- variants/nodemcu/pins_arduino.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/variants/nodemcu/pins_arduino.h b/variants/nodemcu/pins_arduino.h index ceb30691cb..443e23e0f0 100644 --- a/variants/nodemcu/pins_arduino.h +++ b/variants/nodemcu/pins_arduino.h @@ -32,7 +32,8 @@ static const uint8_t SDA = PIN_WIRE_SDA; static const uint8_t SCL = PIN_WIRE_SCL; -#define LED_BUILTIN 16 +#define LED_BUILTIN 2 +#define LED_BUILTIN_AUX 16 static const uint8_t D0 = 16; static const uint8_t D1 = 5;