mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
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.
This commit is contained in:
parent
adda7da485
commit
dde76d1b5d
@ -32,7 +32,8 @@
|
|||||||
static const uint8_t SDA = PIN_WIRE_SDA;
|
static const uint8_t SDA = PIN_WIRE_SDA;
|
||||||
static const uint8_t SCL = PIN_WIRE_SCL;
|
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 D0 = 16;
|
||||||
static const uint8_t D1 = 5;
|
static const uint8_t D1 = 5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user