From 0a5cd60fe86149f8958fc546e99f6370cb74950e Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 8 Mar 2020 21:46:25 +0100 Subject: When a full screen refresh is done, apply a vertical scroll during the refresh. This makes the transition from one screen the another one smoother, even if the refresh rate is slow. --- src/drivers/St7789.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/drivers/St7789.cpp') diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp index 1de5f5f4..1f6e6d36 100644 --- a/src/drivers/St7789.cpp +++ b/src/drivers/St7789.cpp @@ -69,16 +69,16 @@ void St7789::ColumnAddressSet() { WriteCommand(static_cast(Commands::ColumnAddressSet)); WriteData(0x00); WriteData(0x00); - WriteData(Height >> 8); - WriteData(Height & 0xff); + WriteData(Width >> 8u); + WriteData(Width & 0xffu); } void St7789::RowAddressSet() { WriteCommand(static_cast(Commands::RowAddressSet)); WriteData(0x00); WriteData(0x00); - WriteData(Width >> 8); - WriteData(Width & 0xff); + WriteData(320u >> 8u); + WriteData(320u & 0xffu); } void St7789::DisplayInversionOn() { -- cgit v1.2.3-70-g09d2