summaryrefslogtreecommitdiff
path: root/src/drivers/include/display.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-04-22 16:00:53 +1000
committerjacqueline <me@jacqueline.id.au>2024-04-22 16:00:53 +1000
commitdb9e5cce1fff82149a609939709a94ae02f349a8 (patch)
tree5dd6f5a636eb2e87bca84d7ceabbf09c893f23e1 /src/drivers/include/display.hpp
parent5b99267cb9f0344e519956096867aea5468ecf9f (diff)
downloadtangara-fw-db9e5cce1fff82149a609939709a94ae02f349a8.tar.gz
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
Diffstat (limited to 'src/drivers/include/display.hpp')
-rw-r--r--src/drivers/include/display.hpp1
1 files changed, 1 insertions, 0 deletions
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_;