Fixed a bug in the sleep function introduced in another version of 3.7inch e-paper.

This commit is contained in:
SSYYL 2022-09-20 17:36:05 +08:00
parent 8dfe2cff0a
commit 395d30e35e
4 changed files with 8 additions and 20 deletions

View file

@ -382,10 +382,7 @@ void Epd::Clear(UBYTE mode) {
* You can use EPD_Reset() to awaken
*/
void Epd::Sleep(void) {
SendCommand(0X50);
SendData(0xf7);
SendCommand(0X02); //power off
SendCommand(0X07); //deep sleep
SendData(0xA5);
SendCommand(0X10); //deep sleep
SendData(0x03);
}
/* END OF FILE */