diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-06-30 20:48:40 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-06-30 20:48:40 +1000 |
| commit | 371f0a20cad4dfcb3237db6f72a7e35403950938 (patch) | |
| tree | 48240a9c3d2121095e0f10537228603120435dd0 /src/drivers/display.cpp | |
| parent | 0347555d5b2314e1be58261ef29fa13a76c039e6 (diff) | |
| download | tangara-fw-371f0a20cad4dfcb3237db6f72a7e35403950938.tar.gz | |
Clean up gpios interface
Diffstat (limited to 'src/drivers/display.cpp')
| -rw-r--r-- | src/drivers/display.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/display.cpp b/src/drivers/display.cpp index 94f27bb6..d1ea367c 100644 --- a/src/drivers/display.cpp +++ b/src/drivers/display.cpp @@ -28,7 +28,7 @@ #include "lvgl/lvgl.h" #include "display_init.hpp" -#include "gpio_expander.hpp" +#include "gpios.hpp" #include "soc/soc.h" #include "tasks.hpp" @@ -84,7 +84,7 @@ extern "C" void FlushDataCallback(lv_disp_drv_t* disp_drv, instance->OnLvglFlush(disp_drv, area, color_map); } -auto Display::Create(GpioExpander* expander, +auto Display::Create(IGpios* expander, const displays::InitialisationData& init_data) -> Display* { ESP_LOGI(kTag, "Init I/O pins"); @@ -181,7 +181,7 @@ auto Display::Create(GpioExpander* expander, return display.release(); } -Display::Display(GpioExpander* gpio, spi_device_handle_t handle) +Display::Display(IGpios* gpio, spi_device_handle_t handle) : gpio_(gpio), handle_(handle), worker_task_(tasks::Worker::Start<tasks::Type::kUiFlush>()), |
