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:
parent
d834f40c10
commit
0a5cd60fe8
212 changed files with 89114 additions and 32 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ namespace Pinetime {
|
|||
void ColumnAddressSet();
|
||||
|
||||
static constexpr uint16_t Width = 240;
|
||||
static constexpr uint16_t Height = 240;
|
||||
static constexpr uint16_t Height = 320;
|
||||
void RowAddressSet();
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue