diff options
Diffstat (limited to 'src/drivers/St7789.cpp')
-rw-r--r-- | src/drivers/St7789.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp index 1f6e6d36..db7c27e2 100644 --- a/src/drivers/St7789.cpp +++ b/src/drivers/St7789.cpp @@ -131,6 +131,7 @@ void St7789::VerticalScrollDefinition(uint16_t topFixedLines, uint16_t scrollLin } void St7789::VerticalScrollStartAddress(uint16_t line) { + verticalScrollingStartAddress = line; WriteCommand(static_cast<uint8_t>(Commands::VerticalScrollStartAddress)); WriteData(line >> 8u); WriteData(line & 0x00ffu); @@ -189,5 +190,6 @@ void St7789::Wakeup() { RowAddressSet(); DisplayInversionOn(); NormalModeOn(); + VerticalScrollStartAddress(verticalScrollingStartAddress); DisplayOn(); } |