Skip to content

Commit

Permalink
Display freeze recover enhancements - delay between poweron and off
Browse files Browse the repository at this point in the history
  • Loading branch information
moheshmohan committed Dec 13, 2019
1 parent 6d71bcd commit a0bc911
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pwnagotchi/ui/hw/libs/waveshare/v213bc/epd2in13bc.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,20 @@ def init(self):
while(epdconfig.digital_read(self.busy_pin) == 0): # 0: idle, 1: busy
epdconfig.delay_ms(100)
self.reset()
epdconfig.delay_ms(200)
self.send_command(0x01) # POWER SETTING
self.send_data(0x03)
self.send_data(0x00)
self.send_data(0x2b)
self.send_data(0x2b)
self.send_data(0x03)
epdconfig.delay_ms(200)
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
epdconfig.delay_ms(200)
self.send_command(0X50)
self.send_data(0xf7)
self.send_command(0X02) # power off
Expand Down

0 comments on commit a0bc911

Please sign in to comment.