Remove LCD reset and more cmds, save over 200ms

This commit is contained in:
hubmartin 2021-08-15 16:48:41 +02:00
parent faed0d4900
commit 099364e619
1 changed files with 8 additions and 8 deletions

View File

@ -171,15 +171,15 @@ void St7789::Sleep() {
void St7789::Wakeup() { void St7789::Wakeup() {
nrf_gpio_cfg_output(pinDataCommand); nrf_gpio_cfg_output(pinDataCommand);
// TODO why do we need to reset the controller? // TODO why do we need to reset the controller?
HardwareReset(); //HardwareReset();
SoftwareReset(); //SoftwareReset();
SleepOut(); SleepOut();
ColMod(); //ColMod();
MemoryDataAccessControl(); //MemoryDataAccessControl();
ColumnAddressSet(); //ColumnAddressSet();
RowAddressSet(); //RowAddressSet();
DisplayInversionOn(); //DisplayInversionOn();
NormalModeOn(); //NormalModeOn();
VerticalScrollStartAddress(verticalScrollingStartAddress); VerticalScrollStartAddress(verticalScrollingStartAddress);
DisplayOn(); DisplayOn();
NRF_LOG_INFO("[LCD] Wakeup") NRF_LOG_INFO("[LCD] Wakeup")