Skip to content

Commit

Permalink
add boot led
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecrash committed Jul 23, 2023
1 parent 99ac26a commit 1d38215
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ bool resetCounter(bool count)
void setup()
{
pinMode(EPEVER_DE_RE, OUTPUT);
pinMode(LED_PIN, OUTPUT);
analogWrite(LED_PIN, 0);
resetCounter(true);
_settings.load();
WiFi.persistent(true); // fix wifi save bug
Expand Down Expand Up @@ -389,6 +391,7 @@ void setup()
server.begin();
MDNS.addService("http", "tcp", 80);
}
analogWrite(LED_PIN, 255);
resetCounter(false);
}

Expand Down

0 comments on commit 1d38215

Please sign in to comment.