diff options
| author | Jean-François Milants <jf@codingfield.com> | 2023-05-18 15:19:44 +0200 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2023-06-04 17:22:27 +0200 |
| commit | 9bd90c906e0c738836976cad5328bfae36393e7e (patch) | |
| tree | e4859ec0a19743ac3c3d2be47eb7b08934822dcd /src/drivers/St7789.h | |
| parent | 62848b33fb3df756fea17f31c818cd6de7a85b34 (diff) | |
Power optimization - Improve SPI sleep mode
ST7789 driver : replace the constant '26' with a named constant to specify the pin number of the reset pin of the LCD controller.
Diffstat (limited to 'src/drivers/St7789.h')
| -rw-r--r-- | src/drivers/St7789.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h index 8a1bdfca..68e1da44 100644 --- a/src/drivers/St7789.h +++ b/src/drivers/St7789.h @@ -8,7 +8,7 @@ namespace Pinetime { class St7789 { public: - explicit St7789(Spi& spi, uint8_t pinDataCommand); + explicit St7789(Spi& spi, uint8_t pinDataCommand, uint8_t pinReset); St7789(const St7789&) = delete; St7789& operator=(const St7789&) = delete; St7789(St7789&&) = delete; @@ -29,6 +29,7 @@ namespace Pinetime { private: Spi& spi; uint8_t pinDataCommand; + uint8_t pinReset; uint8_t verticalScrollingStartAddress = 0; void HardwareReset(); |
