summaryrefslogtreecommitdiff
path: root/src/drivers/St7789.cpp
diff options
context:
space:
mode:
authorhubmartin <hub.martin@gmail.com>2021-08-15 16:48:41 +0200
committerhubmartin <hub.martin@gmail.com>2021-08-15 16:48:41 +0200
commit099364e619374c4ad9bc0ba9136c31c35a82faf7 (patch)
treee1d5cbaff0c45237d42ab00db3a30d0da9dd69f4 /src/drivers/St7789.cpp
parentfaed0d49006605e33905f1914f04c90f6138bf6e (diff)
Remove LCD reset and more cmds, save over 200ms
Diffstat (limited to 'src/drivers/St7789.cpp')
-rw-r--r--src/drivers/St7789.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp
index 0f1dc02e..74038b2b 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")