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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user