fix: cooldown period during the display shutdown display sequence

Observed to prevent border pixels from being locked in place with some residual charge?
This commit is contained in:
Todd Herbert 2025-03-26 16:42:06 +13:00
parent 1368956a57
commit 0af7f838ab
2 changed files with 3 additions and 0 deletions

View File

@ -95,8 +95,10 @@ void InkHUD::LogoApplet::onShutdown()
inverted = true;
inkhud->forceUpdate(Drivers::EInk::FULL, false);
delay(1000); // Cooldown. Back to back updates aren't great for health.
inverted = false;
inkhud->forceUpdate(Drivers::EInk::FULL, false);
delay(1000); // Cooldown
// Prepare for the powered-off screen now
// We can change these values because the initial "shutting down" screen has already rendered at this point

View File

@ -95,6 +95,7 @@ int InkHUD::Events::beforeDeepSleep(void *unused)
// We're updating to show that one now.
inkhud->forceUpdate(Drivers::EInk::UpdateTypes::FULL, false);
delay(1000); // Cooldown, before potentially yanking display power
return 0; // We agree: deep sleep now
}