Reintroduction of STATUSLED

pull/2737/head
Blaz Kristan 2021-10-27 17:49:35 +02:00
rodzic 757e8eb57c
commit b50e066dee
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -158,6 +158,7 @@ void WLED::loop()
yield();
handleWs();
handleStatusLED();
// DEBUG serial logging (every 30s)
#ifdef WLED_DEBUG
@ -260,6 +261,14 @@ void WLED::setup()
DEBUG_PRINTLN(F("Reading config"));
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"));
beginStrip();