Skip to content

Commit dde76d1

Browse files
authored
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.
1 parent adda7da commit dde76d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: variants/nodemcu/pins_arduino.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
static const uint8_t SDA = PIN_WIRE_SDA;
3333
static const uint8_t SCL = PIN_WIRE_SCL;
3434

35-
#define LED_BUILTIN 16
35+
#define LED_BUILTIN 2
36+
#define LED_BUILTIN_AUX 16
3637

3738
static const uint8_t D0 = 16;
3839
static const uint8_t D1 = 5;

0 commit comments

Comments
 (0)