summaryrefslogtreecommitdiff
path: root/src/drivers/St7789.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-11 20:35:06 (GMT)
committerJF <jf@codingfield.com>2020-03-11 20:35:06 (GMT)
commita91c68c931cc8308e87acd796afb46ba70ae3dc2 (patch)
tree505f15350e19c44eca19e252ca5b999f959164df /src/drivers/St7789.h
parentb279c994887342197cc5940f1735a074d7e58f1b (diff)
Backup and restore vertical scroll offset when goind to sleep/wakeup to avoid scrambled display on wake-up.
Diffstat (limited to 'src/drivers/St7789.h')
-rw-r--r--src/drivers/St7789.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h
index fb57f28..3721b18 100644
--- a/src/drivers/St7789.h
+++ b/src/drivers/St7789.h
@@ -31,6 +31,7 @@ namespace Pinetime {
private:
SpiMaster& spi;
uint8_t pinDataCommand;
+ uint8_t verticalScrollingStartAddress = 0;
void HardwareReset();
void SoftwareReset();