Reintroduction of STATUSLED
This commit is contained in:
parent
757e8eb57c
commit
b50e066dee
@ -158,6 +158,7 @@ void WLED::loop()
|
|||||||
|
|
||||||
yield();
|
yield();
|
||||||
handleWs();
|
handleWs();
|
||||||
|
handleStatusLED();
|
||||||
|
|
||||||
// DEBUG serial logging (every 30s)
|
// DEBUG serial logging (every 30s)
|
||||||
#ifdef WLED_DEBUG
|
#ifdef WLED_DEBUG
|
||||||
@ -260,6 +261,14 @@ void WLED::setup()
|
|||||||
DEBUG_PRINTLN(F("Reading config"));
|
DEBUG_PRINTLN(F("Reading config"));
|
||||||
deserializeConfigFromFS();
|
deserializeConfigFromFS();
|
||||||
|
|
||||||
|
#if STATUSLED
|
||||||
|
if (!pinManager.isPinAllocated(STATUSLED)) {
|
||||||
|
// NOTE: Special case: The status LED should *NOT* be allocated.
|
||||||
|
// See comments in handleStatusLed().
|
||||||
|
pinMode(STATUSLED, OUTPUT);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
DEBUG_PRINTLN(F("Initializing strip"));
|
DEBUG_PRINTLN(F("Initializing strip"));
|
||||||
beginStrip();
|
beginStrip();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user