Implement shadow buffer to stora changes in memory until update() method is called

This commit is contained in:
2026-04-03 19:23:41 -03:00
parent 89b3ad3899
commit d64a3e61b6
3 changed files with 34 additions and 14 deletions

View File

@@ -120,6 +120,8 @@ int main(int argc, char* argv[]) {
tm->tm_hour, tm->tm_min, tm->tm_sec);
draw_centered(display, 41, line_buf);
display.update();
// --- Sleep aligned to next whole second ---
struct timespec ts{};
clock_gettime(CLOCK_REALTIME, &ts);