From 6d71bcd9650858dae95593e18e94677394d22bab Mon Sep 17 00:00:00 2001
From: "mohesh.mohan" <moheshmohan@gmail.com>
Date: Fri, 13 Dec 2019 21:08:56 +0400
Subject: [PATCH] Display freeze recover enhancements

---
 pwnagotchi/ui/hw/libs/waveshare/v213bc/epd2in13bc.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pwnagotchi/ui/hw/libs/waveshare/v213bc/epd2in13bc.py b/pwnagotchi/ui/hw/libs/waveshare/v213bc/epd2in13bc.py
index 11451d3..350db9d 100644
--- a/pwnagotchi/ui/hw/libs/waveshare/v213bc/epd2in13bc.py
+++ b/pwnagotchi/ui/hw/libs/waveshare/v213bc/epd2in13bc.py
@@ -188,6 +188,11 @@ class EPD:
         while(epdconfig.digital_read(self.busy_pin) == 0):      # 0: idle, 1: busy
             epdconfig.delay_ms(100)
             self.reset()
+            self.send_command(0x06) # BOOSTER_SOFT_START
+            self.send_data(0x17)
+            self.send_data(0x17)
+            self.send_data(0x17)
+            self.send_command(0x04) # POWER_ON
             self.send_command(0X50)
             self.send_data(0xf7)
             self.send_command(0X02) # power off