From e648edaf6eff483efd8f622cd55eea75aba4d302 Mon Sep 17 00:00:00 2001 From: Brian Y Date: Thu, 12 Dec 2019 22:12:40 -0500 Subject: [PATCH] changed sleep commands --- .../python/lib/waveshare_epd/epd2in7.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index 21cfd77..c7b4e3c 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -549,12 +549,15 @@ class EPD: self.ReadBusy() def sleep(self): - self.send_command(0x50) - self.send_data(0xf7) - self.send_command(0x02) # power off - self.ReadBusy() - self.send_command(0x07) # deep sleep - self.send_data(0xa5) + # self.send_command(0x50) + # self.send_data(0xf7) + # self.send_command(0x02) # power off + # self.ReadBusy() + # self.send_command(0x07) # deep sleep + # self.send_data(0xa5) + # self.ReadBusy() + # epdconfig.module_exit() + self.send_command(DEEP_SLEEP) self.ReadBusy() epdconfig.module_exit() ### END OF FILE ###