summaryrefslogtreecommitdiff
path: root/src/drivers/include/display.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/include/display.hpp')
-rw-r--r--src/drivers/include/display.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/include/display.hpp b/src/drivers/include/display.hpp
index d2e0c14b..b394dd9e 100644
--- a/src/drivers/include/display.hpp
+++ b/src/drivers/include/display.hpp
@@ -6,6 +6,7 @@
#pragma once
+#include <stdint.h>
#include <cstdint>
#include <memory>
@@ -35,6 +36,8 @@ class Display {
Display(GpioExpander* gpio, spi_device_handle_t handle);
~Display();
+ auto SetDisplayOn(bool) -> void;
+
/* Driver callback invoked by LVGL when there is new data to display. */
void OnLvglFlush(lv_disp_drv_t* disp_drv,
const lv_area_t* area,
@@ -46,6 +49,9 @@ class Display {
std::unique_ptr<tasks::Worker> worker_task_;
+ bool display_on_;
+ uint32_t brightness_;
+
lv_disp_draw_buf_t buffers_;
lv_disp_drv_t driver_;
lv_disp_t* display_ = nullptr;