Merge pull request #586 from hubmartin/wake-time

Improve wake-up time
This commit is contained in:
JF 2021-10-23 10:24:27 +02:00 committed by GitHub
commit 9538eb9716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 11 deletions

View File

@ -20,8 +20,6 @@ Cst816S::Cst816S(TwiMaster& twiMaster, uint8_t twiAddress) : twiMaster {twiMaste
bool Cst816S::Init() { bool Cst816S::Init() {
nrf_gpio_cfg_output(PinMap::Cst816sReset); nrf_gpio_cfg_output(PinMap::Cst816sReset);
nrf_gpio_pin_set(PinMap::Cst816sReset);
vTaskDelay(50);
nrf_gpio_pin_clear(PinMap::Cst816sReset); nrf_gpio_pin_clear(PinMap::Cst816sReset);
vTaskDelay(5); vTaskDelay(5);
nrf_gpio_pin_set(PinMap::Cst816sReset); nrf_gpio_pin_set(PinMap::Cst816sReset);

View File

@ -170,16 +170,7 @@ 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?
HardwareReset();
SoftwareReset();
SleepOut(); SleepOut();
ColMod();
MemoryDataAccessControl();
ColumnAddressSet();
RowAddressSet();
DisplayInversionOn();
NormalModeOn();
VerticalScrollStartAddress(verticalScrollingStartAddress); VerticalScrollStartAddress(verticalScrollingStartAddress);
DisplayOn(); DisplayOn();
NRF_LOG_INFO("[LCD] Wakeup") NRF_LOG_INFO("[LCD] Wakeup")