From dde76d1b5da4a99c109a8a4a29dae693fef316b4 Mon Sep 17 00:00:00 2001 From: Develo Date: Sun, 10 Nov 2019 02:01:02 -0300 Subject: [PATCH] Puts to rest the confusion about the builtin leds for nodemcu boards (#6743) 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 ceb30691c..443e23e0f 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;