diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2023-10-23 22:22:46 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2024-08-05 20:32:43 +0200 |
| commit | da9ab4a7b44b3daed233d876f50c245ee4ee4229 (patch) | |
| tree | cdc2b41b0db1bf15b9f72776d5cb34988c22ea5d /src/drivers/St7789.cpp | |
| parent | 0bcd7e000960d18db6d26813185fe0e2695bdfe6 (diff) | |
aod: lower lcd voltage
Diffstat (limited to 'src/drivers/St7789.cpp')
| -rw-r--r-- | src/drivers/St7789.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp index 48b65acb..cdfa6a34 100644 --- a/src/drivers/St7789.cpp +++ b/src/drivers/St7789.cpp @@ -28,6 +28,7 @@ void St7789::Init() { NormalModeOn(); SetVdv(); PowerControl(); + GateControl(); DisplayOn(); } @@ -190,6 +191,12 @@ void St7789::PowerControl() { WriteData(0xb3); } +void St7789::GateControl() { + WriteCommand(static_cast<uint8_t>(Commands::GateControl)); + // Lowest possible VGL/VGH + WriteData(0x00); +} + void St7789::SetAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1) { WriteCommand(static_cast<uint8_t>(Commands::ColumnAddressSet)); uint8_t colArgs[] = { |
