fix: turn off T-Echo peripherals on deep sleep (#3162)

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Andre KandBen Meadors authored and GitHub committed 2024-03-08 20:15:37 -06:00
1 parent 0f1bc98305
commit 51df4fc775
10 files changed
+18 -33

No files matched your search

+3
View File
@@ -938,6 +938,9 @@ void Screen::doDeepSleep()
static const int sleepFrameCount = sizeof(sleepFrames) / sizeof(sleepFrames[0]);
ui->setFrames(sleepFrames, sleepFrameCount);
ui->update();
#ifdef PIN_EINK_EN
digitalWrite(PIN_EINK_EN, LOW); // power off backlight
#endif
#endif
setOn(false);
}