Disable SPI, I²C, touch controller and display controller in sleep mode.
Re-enable them on wake up. Remove delays that were not needed in st7889 driver. Hopefully, it'll improve the battery life!
This commit is contained in:
@@ -23,9 +23,15 @@ namespace Pinetime {
|
||||
bool Init(const SpiModule spi, const Parameters& params);
|
||||
bool Write(const uint8_t* data, size_t size);
|
||||
|
||||
void Sleep();
|
||||
void Wakeup();
|
||||
|
||||
private:
|
||||
NRF_SPI_Type * spiBaseAddress;
|
||||
uint8_t pinCsn;
|
||||
|
||||
SpiMaster::SpiModule configSpiModule;
|
||||
SpiMaster::Parameters configParams;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user