diff options
| author | hubmartin <hub.martin@gmail.com> | 2021-08-15 14:48:41 (GMT) |
|---|---|---|
| committer | hubmartin <hub.martin@gmail.com> | 2021-08-15 14:48:41 (GMT) |
| commit | 099364e619374c4ad9bc0ba9136c31c35a82faf7 (patch) | |
| tree | e1d5cbaff0c45237d42ab00db3a30d0da9dd69f4 /src | |
| parent | faed0d49006605e33905f1914f04c90f6138bf6e (diff) | |
Remove LCD reset and more cmds, save over 200ms
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/St7789.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp index 0f1dc02..74038b2 100644 --- a/src/drivers/St7789.cpp +++ b/src/drivers/St7789.cpp @@ -171,15 +171,15 @@ void St7789::Sleep() { void St7789::Wakeup() { nrf_gpio_cfg_output(pinDataCommand); // TODO why do we need to reset the controller? - HardwareReset(); - SoftwareReset(); + //HardwareReset(); + //SoftwareReset(); SleepOut(); - ColMod(); - MemoryDataAccessControl(); - ColumnAddressSet(); - RowAddressSet(); - DisplayInversionOn(); - NormalModeOn(); + //ColMod(); + //MemoryDataAccessControl(); + //ColumnAddressSet(); + //RowAddressSet(); + //DisplayInversionOn(); + //NormalModeOn(); VerticalScrollStartAddress(verticalScrollingStartAddress); DisplayOn(); NRF_LOG_INFO("[LCD] Wakeup") |
