Use ZJY122250_0213BAAMFGN driver

Improves display health. We don't need as many full refreshes now.
This commit is contained in:
Todd Herbert 2025-07-10 01:12:52 +12:00
parent 8de023dfc3
commit 6e72efde80
2 changed files with 3 additions and 9 deletions

View File

@ -7,12 +7,7 @@ using namespace NicheGraphics;
// Timing for "maintenance" // Timing for "maintenance"
// Paying off full-refresh debt with unprovoked updates, if the display is not very active // Paying off full-refresh debt with unprovoked updates, if the display is not very active
#ifdef SEEED_WIO_TRACKER_L1
static constexpr uint32_t MAINTENANCE_MS_INITIAL = 5 * 1000UL;
#else
static constexpr uint32_t MAINTENANCE_MS_INITIAL = 60 * 1000UL; static constexpr uint32_t MAINTENANCE_MS_INITIAL = 60 * 1000UL;
#endif
static constexpr uint32_t MAINTENANCE_MS = 60 * 60 * 1000UL; static constexpr uint32_t MAINTENANCE_MS = 60 * 60 * 1000UL;
InkHUD::DisplayHealth::DisplayHealth() : concurrency::OSThread("Mediator") InkHUD::DisplayHealth::DisplayHealth() : concurrency::OSThread("Mediator")

View File

@ -18,7 +18,7 @@
// Shared NicheGraphics components // Shared NicheGraphics components
// -------------------------------- // --------------------------------
#include "graphics/niche/Drivers/EInk/GDEY0213B74.h" #include "graphics/niche/Drivers/EInk/ZJY122250_0213BAAMFGN.h"
#include "graphics/niche/Inputs/TwoButton.h" #include "graphics/niche/Inputs/TwoButton.h"
void setupNicheGraphics() void setupNicheGraphics()
@ -34,7 +34,7 @@ void setupNicheGraphics()
// E-Ink Driver // E-Ink Driver
// ----------------------------- // -----------------------------
Drivers::EInk *driver = new Drivers::GDEY0213B74; Drivers::EInk *driver = new Drivers::ZJY122250_0213BAAMFGN;
driver->begin(&SPI1, PIN_EINK_DC, PIN_EINK_CS, PIN_EINK_BUSY, PIN_EINK_RES); driver->begin(&SPI1, PIN_EINK_DC, PIN_EINK_CS, PIN_EINK_BUSY, PIN_EINK_RES);
// InkHUD // InkHUD
@ -46,8 +46,7 @@ void setupNicheGraphics()
inkhud->setDriver(driver); inkhud->setDriver(driver);
// Set how many FAST updates per FULL update // Set how many FAST updates per FULL update
// Set how unhealthy additional FAST updates beyond this number are inkhud->setDisplayResilience(15);
inkhud->setDisplayResilience(7, 1.5);
// Select fonts // Select fonts
InkHUD::Applet::fontLarge = FREESANS_12PT_WIN1252; InkHUD::Applet::fontLarge = FREESANS_12PT_WIN1252;