I'm making a low energy consumption device so I'd like to turn off all the led when I'm idle.
Unfortunately the nodemcu turn on a blue led while I'm idle (during delay(ms)
)
Here is my code:
#define LED 16
void setup() {
initialSetup();
//Turn off the built-in led
digitalWrite(LED, HIGH);
}
void loop() {
//Here I do everything
doStuff();
//GO TO SLEEP
delay(3600000);
}
The led that turn on during delay is the one near to D0 pin.
The led that I can control and so turn off (pin #16 -> D0) is near the 5v pin.
It's possible to completely turn off all led to consume less?