Skip to content

Commit

Permalink
remove unnecessary delays in display initialization (#36)
Browse files Browse the repository at this point in the history
- no need to wait 10ms since VCI already supplied, display is in deep sleep mode
- no need to wait 100ms after hardware eset (waiting for busy) before software reset

=> might contribute to a tiny reduction of power consumption
  • Loading branch information
gitdode authored Sep 9, 2023
1 parent 04fac1b commit 15b82d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thermidity-avr/eink.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ void displayData(uint8_t data) {

void initDisplay(bool fast) {
// 1. Power On
// VCI already supplied - could supply by MCU output pin?
// - Supply VCI
// - Wait 10ms
_delay_ms(10);
// VCI already supplied, no need to wait
// _delay_ms(10);

displaySel();

Expand All @@ -65,7 +65,7 @@ void initDisplay(bool fast) {

// - HW Reset
hwReset();
_delay_ms(100);
// _delay_ms(100);
waitBusy();

// - SW Reset by Command 0x12
Expand Down

0 comments on commit 15b82d2

Please sign in to comment.