Turn on Onboard blue LED nodeMCU

Hey guys,

I’ve been reading here and there and after all the long topics on how to turn off the blue light, I actually need to turn it on. If it is off my PSU has coil whine and if I revert to version 10 it shuts up.

So my question here is how can I recompile it so my LED stays ON when the strip is powered off?

WLED/wled00/ button.cpp
{
if (!offMode) {
#ifdef ESP8266
// turn off built-in LED if strip is turned off
// this will break digital bus so will need to be reinitialised on On
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH); - IF I CHANGE THIS TO (LED_BUILTIN, LOW);
#endif
if (rlyPin>=0) {
pinMode(rlyPin, OUTPUT);
digitalWrite(rlyPin, !rlyMde);
}
}

Will the above change solve my problem? Or do I need to update some other file as well?

Remove the code within #ifdef and #endif.
Then check bus_manager.h for similar code and remove that as well.
Verify if there is similar code and remove it in wled.cpp as well.

2 Likes