Skip to content

Commit 9538eb9

Browse files
authored
Merge pull request #586 from hubmartin/wake-time
Improve wake-up time
2 parents 6c3f56b + 27366bd commit 9538eb9

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/drivers/Cst816s.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ Cst816S::Cst816S(TwiMaster& twiMaster, uint8_t twiAddress) : twiMaster {twiMaste
2020

2121
bool Cst816S::Init() {
2222
nrf_gpio_cfg_output(PinMap::Cst816sReset);
23-
nrf_gpio_pin_set(PinMap::Cst816sReset);
24-
vTaskDelay(50);
2523
nrf_gpio_pin_clear(PinMap::Cst816sReset);
2624
vTaskDelay(5);
2725
nrf_gpio_pin_set(PinMap::Cst816sReset);

src/drivers/St7789.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,7 @@ void St7789::Sleep() {
170170

171171
void St7789::Wakeup() {
172172
nrf_gpio_cfg_output(pinDataCommand);
173-
// TODO why do we need to reset the controller?
174-
HardwareReset();
175-
SoftwareReset();
176173
SleepOut();
177-
ColMod();
178-
MemoryDataAccessControl();
179-
ColumnAddressSet();
180-
RowAddressSet();
181-
DisplayInversionOn();
182-
NormalModeOn();
183174
VerticalScrollStartAddress(verticalScrollingStartAddress);
184175
DisplayOn();
185176
NRF_LOG_INFO("[LCD] Wakeup")

0 commit comments

Comments
 (0)