From db9e5cce1fff82149a609939709a94ae02f349a8 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 22 Apr 2024 16:00:53 +1000 Subject: Improve handling of the display - Blank the display when locking to prevent burn-in - Delay turning the display on until *exactly* after the first lvgl flush - Init the display in the ui task to avoid blocking the rest of boot --- src/drivers/include/display.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/drivers/include') diff --git a/src/drivers/include/display.hpp b/src/drivers/include/display.hpp index b0aa5d58..d2e18a5c 100644 --- a/src/drivers/include/display.hpp +++ b/src/drivers/include/display.hpp @@ -52,6 +52,7 @@ class Display { IGpios& gpio_; spi_device_handle_t handle_; + bool first_flush_finished_; bool display_on_; uint_fast8_t brightness_; -- cgit v1.2.3