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.

This commit is contained in:
JF
2020-03-08 21:46:25 +01:00
parent d834f40c10
commit 0a5cd60fe8
212 changed files with 89114 additions and 32 deletions

View File

@@ -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() {