summaryrefslogtreecommitdiff
path: root/src/drivers/St7789.cpp
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-08 20:46:25 (GMT)
committerJF <jf@codingfield.com>2020-03-08 20:46:25 (GMT)
commit0a5cd60fe86149f8958fc546e99f6370cb74950e (patch)
treed630a6c66d69d22c53b8011e215e1072875c6a29 /src/drivers/St7789.cpp
parentd834f40c1014ac8926af9aaadc434a49e632b000 (diff)
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.
Diffstat (limited to 'src/drivers/St7789.cpp')
-rw-r--r--src/drivers/St7789.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp
index 1de5f5f..1f6e6d3 100644
--- a/src/drivers/St7789.cpp
+++ b/src/drivers/St7789.cpp
@@ -69,16 +69,16 @@ void St7789::ColumnAddressSet() {
WriteCommand(static_cast<uint8_t>(Commands::ColumnAddressSet));
WriteData(0x00);
WriteData(0x00);
- WriteData(Height >> 8);
- WriteData(Height & 0xff);
+ WriteData(Width >> 8u);
+ WriteData(Width & 0xffu);
}
void St7789::RowAddressSet() {
WriteCommand(static_cast<uint8_t>(Commands::RowAddressSet));
WriteData(0x00);
WriteData(0x00);
- WriteData(Width >> 8);
- WriteData(Width & 0xff);
+ WriteData(320u >> 8u);
+ WriteData(320u & 0xffu);
}
void St7789::DisplayInversionOn() {