diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp index 88fc7091c6..dc3e28c444 100644 --- a/src/drivers/St7789.cpp +++ b/src/drivers/St7789.cpp @@ -28,6 +28,7 @@ void St7789::Init() { NormalModeOn(); SetVdv(); PowerControl(); + GateControl(); DisplayOn(); } @@ -153,6 +154,11 @@ void St7789::PowerControl() { WriteData(0xb3); } +void St7789::GateControl() { + WriteCommand(static_cast(Commands::GateControl)); + WriteData(0x00); +} + void St7789::SetAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1) { WriteCommand(static_cast(Commands::ColumnAddressSet)); WriteData(x0 >> 8); diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h index 690ba830ef..64b584270d 100644 --- a/src/drivers/St7789.h +++ b/src/drivers/St7789.h @@ -51,6 +51,7 @@ namespace Pinetime { void DisplayOn(); void DisplayOff(); void PowerControl(); + void GateControl(); void SetAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1); void SetVdv(); @@ -79,6 +80,7 @@ namespace Pinetime { PowerControl1 = 0xd0, Command2Enable = 0xdf, PowerControl2 = 0xe8, + GateControl = 0xb7, }; void WriteData(uint8_t data); void ColumnAddressSet();