Skip to content

Commit a97a2cd

Browse files
committed
Added deep sleep hotfix for Inkplate6 COLOR
1 parent 6e50bfa commit a97a2cd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/boards/Inkplate6Color.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,10 @@ bool Inkplate::setPanelDeepSleep(bool _state)
320320
sendCommand(0xE3);
321321
sendData(0xAA);
322322

323+
delay(100);
324+
sendCommand(VCOM_DATA_INTERVAL_REGISTER);
325+
sendData(0x37);
326+
323327
return true;
324328
}
325329
else
@@ -336,8 +340,6 @@ bool Inkplate::setPanelDeepSleep(bool _state)
336340

337341
epdSPI.end();
338342

339-
pinMode(EPAPER_DIN, INPUT);
340-
pinMode(EPAPER_CLK, INPUT);
341343
return true;
342344
}
343345
}
@@ -390,4 +392,4 @@ void Inkplate::setIOExpanderForLowPower()
390392
digitalWriteInternal(IO_INT_ADDR, ioRegsInt, IO_PIN_B6, LOW);
391393
digitalWriteInternal(IO_INT_ADDR, ioRegsInt, IO_PIN_B7, LOW);
392394
}
393-
#endif
395+
#endif

0 commit comments

Comments
 (0)