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

View File

@ -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")