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/include/display.hpp | |
| parent | 0347555d5b2314e1be58261ef29fa13a76c039e6 (diff) | |
| download | tangara-fw-371f0a20cad4dfcb3237db6f72a7e35403950938.tar.gz | |
Clean up gpios interface
Diffstat (limited to 'src/drivers/include/display.hpp')
| -rw-r--r-- | src/drivers/include/display.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<tasks::Worker> worker_task_; |
