aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/St7789.h
diff options
context:
space:
mode:
authormark9064 <30447455+mark9064@users.noreply.github.com>2024-04-04 19:29:46 +0100
committerJF <JF002@users.noreply.github.com>2024-06-19 17:25:15 +0200
commitf8f8993fac0bdd022dc9ef41a67c0b558f29ba89 (patch)
tree5d2aece191a7b7849559944ede55740116da1e01 /src/drivers/St7789.h
parentfdc3b8badbf5d11b50a378f0e572dfe3e443c08c (diff)
Batch display command arguments
Diffstat (limited to 'src/drivers/St7789.h')
-rw-r--r--src/drivers/St7789.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h
index 45d4b56d..844e0180 100644
--- a/src/drivers/St7789.h
+++ b/src/drivers/St7789.h
@@ -40,7 +40,7 @@ namespace Pinetime {
void SleepOut();
void EnsureSleepOutPostDelay();
void SleepIn();
- void ColMod();
+ void PixelFormat();
void MemoryDataAccessControl();
void DisplayInversionOn();
void NormalModeOn();
@@ -68,16 +68,17 @@ namespace Pinetime {
MemoryDataAccessControl = 0x36,
VerticalScrollDefinition = 0x33,
VerticalScrollStartAddress = 0x37,
- ColMod = 0x3a,
+ PixelFormat = 0x3a,
VdvSet = 0xc4,
};
void WriteData(uint8_t data);
void WriteData(const uint8_t* data, size_t size);
- void ColumnAddressSet();
static constexpr uint16_t Width = 240;
static constexpr uint16_t Height = 320;
- void RowAddressSet();
+
+ uint8_t addrWindowArgs[4];
+ uint8_t verticalScrollArgs[2];
};
}
}