summaryrefslogtreecommitdiff
path: root/src/drivers/St7789.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/St7789.h')
-rw-r--r--src/drivers/St7789.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h
index 4fbccbe..8c2ac09 100644
--- a/src/drivers/St7789.h
+++ b/src/drivers/St7789.h
@@ -22,9 +22,6 @@ namespace Pinetime {
void DrawBuffer(uint16_t x, uint16_t y, uint16_t width, uint16_t height, const uint8_t* data, size_t size);
- void DisplayOn();
- void DisplayOff();
-
void Sleep();
void Wakeup();
@@ -42,7 +39,11 @@ namespace Pinetime {
void DisplayInversionOn();
void NormalModeOn();
void WriteToRam();
+ void DisplayOn();
+ void DisplayOff();
+
void SetAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1);
+ void SetVdv();
void WriteCommand(uint8_t cmd);
void WriteSpi(const uint8_t* data, size_t size);
@@ -61,6 +62,7 @@ namespace Pinetime {
VerticalScrollDefinition = 0x33,
VerticalScrollStartAddress = 0x37,
ColMod = 0x3a,
+ VdvSet = 0xc4,
};
void WriteData(uint8_t data);
void ColumnAddressSet();