From 9bd90c906e0c738836976cad5328bfae36393e7e Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Thu, 18 May 2023 15:19:44 +0200 Subject: 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. --- src/drivers/St7789.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/drivers/St7789.h') 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(); -- cgit v1.2.3-70-g09d2