Skip to content

Commit

Permalink
Merge pull request InfiniTimeOrg#586 from hubmartin/wake-time
Browse files Browse the repository at this point in the history
Improve wake-up time
  • Loading branch information
JF002 authored Oct 23, 2021
2 parents 6c3f56b + 27366bd commit 9538eb9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/drivers/Cst816s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ Cst816S::Cst816S(TwiMaster& twiMaster, uint8_t twiAddress) : twiMaster {twiMaste

bool Cst816S::Init() {
nrf_gpio_cfg_output(PinMap::Cst816sReset);
nrf_gpio_pin_set(PinMap::Cst816sReset);
vTaskDelay(50);
nrf_gpio_pin_clear(PinMap::Cst816sReset);
vTaskDelay(5);
nrf_gpio_pin_set(PinMap::Cst816sReset);
Expand Down
9 changes: 0 additions & 9 deletions src/drivers/St7789.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,7 @@ void St7789::Sleep() {

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

0 comments on commit 9538eb9

Please sign in to comment.