From 33886eef493838c0053d607e978c2a3d481878de Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Sun, 12 Jul 2020 10:58:39 -0400 Subject: [PATCH] properly draw UI on startup --- teensy/teensy.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/teensy/teensy.ino b/teensy/teensy.ino index aca732b..c87ac25 100644 --- a/teensy/teensy.ino +++ b/teensy/teensy.ino @@ -156,6 +156,9 @@ void setup() resetButtonDebouncer.attach(RESETPIN); resetButtonDebouncer.interval(5); // ms + + println("Drawing UI border"); + g_display->redraw(); println("free-running"); Serial.flush(); @@ -275,8 +278,6 @@ void runMaintenance() #define TARGET_FPS 30 void runDisplay() { - // g_display->redraw(); // Redraw the UI; don't blit to the physical device - // When do we want to reset our expectation of "normal"? static uint32_t nextResetMillis = 0; // how many full display refreshes have we managed in this second?