Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/boards/Inkplate6COLOR/Inkplate6COLORDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ void EPDDriver::display(bool _leaveOn)

sendCommand(POWER_OFF_REGISTER);
while (!(digitalRead(EPAPER_BUSY_PIN)))
; // Wait for busy high signal
delay(1); // Wait for busy high signal
sendCommand(DISPLAY_REF_REGISTER);
while (!(digitalRead(EPAPER_BUSY_PIN)))
; // Wait for busy high signal
delay(1); // Wait for busy high signal
sendCommand(0x02);
while (digitalRead(EPAPER_BUSY_PIN))
; // Wait for busy low signal
delay(1); // Wait for busy low signal
delay(200);

// Put the panel to sleep again
Expand Down Expand Up @@ -220,13 +220,13 @@ void EPDDriver::clean()

sendCommand(POWER_OFF_REGISTER);
while (!(digitalRead(EPAPER_BUSY_PIN)))
; // Wait for busy high signal
delay(1); // Wait for busy high signal
sendCommand(DISPLAY_REF_REGISTER);
while (!(digitalRead(EPAPER_BUSY_PIN)))
; // Wait for busy high signal
delay(1); // Wait for busy high signal
sendCommand(POWER_OFF_REGISTER);
while (digitalRead(EPAPER_BUSY_PIN))
; // Wait for busy low signal
delay(1); // Wait for busy low signal
delay(200);
}

Expand Down Expand Up @@ -564,4 +564,4 @@ double EPDDriver::readBattery()
}


#endif
#endif