Skip to content

Commit

Permalink
turn of builtin led during sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisGarvey committed Apr 30, 2024
1 parent b027e2b commit 07cc963
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Squidbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ void Squidbox::sleep() {
// Clear the screen and update it before going to deep sleep
screen->clear();
screen->update();
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
esp_deep_sleep_start();
}

Expand Down

0 comments on commit 07cc963

Please sign in to comment.