diff options
Diffstat (limited to 'src/drivers/St7789.cpp')
| -rw-r--r-- | src/drivers/St7789.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp index 3ed1beb..d520199 100644 --- a/src/drivers/St7789.cpp +++ b/src/drivers/St7789.cpp @@ -23,7 +23,7 @@ void St7789::Init() { RowAddressSet(); DisplayInversionOn(); NormalModeOn(); - SetVdv(); + SetGamma(); DisplayOn(); } @@ -115,11 +115,9 @@ void St7789::WriteToRam() { WriteCommand(static_cast<uint8_t>(Commands::WriteToRam)); } -void St7789::SetVdv() { - // By default there is a large step from pixel brightness zero to one. - // After experimenting with VCOMS, VRH and VDV, this was found to produce good results. - WriteCommand(static_cast<uint8_t>(Commands::VdvSet)); - WriteData(0x10); +void St7789::SetGamma() { + WriteCommand(static_cast<uint8_t>(Commands::GammaSet)); + WriteData(0x04); } void St7789::DisplayOff() { |
