From 371f0a20cad4dfcb3237db6f72a7e35403950938 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 30 Jun 2023 20:48:40 +1000 Subject: Clean up gpios interface --- src/drivers/include/display.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/drivers/include/display.hpp') diff --git a/src/drivers/include/display.hpp b/src/drivers/include/display.hpp index 4b63e1c4..23bbbab9 100644 --- a/src/drivers/include/display.hpp +++ b/src/drivers/include/display.hpp @@ -16,7 +16,7 @@ #include "tasks.hpp" #include "display_init.hpp" -#include "gpio_expander.hpp" +#include "gpios.hpp" namespace drivers { @@ -30,10 +30,10 @@ class Display { * over SPI. This never fails, since unfortunately these display don't give * us back any kind of signal to tell us we're actually using them correctly. */ - static auto Create(GpioExpander* expander, + static auto Create(IGpios* expander, const displays::InitialisationData& init_data) -> Display*; - Display(GpioExpander* gpio, spi_device_handle_t handle); + Display(IGpios* gpio, spi_device_handle_t handle); ~Display(); auto SetDisplayOn(bool) -> void; @@ -48,7 +48,7 @@ class Display { Display& operator=(const Display&) = delete; private: - GpioExpander* gpio_; + IGpios* gpio_; spi_device_handle_t handle_; std::unique_ptr worker_task_; -- cgit v1.2.3