Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Update epd2in7_V2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jayofelony committed Jan 3, 2024
1 parent d8b7a49 commit 5e9a73f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pwnagotchi/ui/hw/libs/waveshare/v2in7_v2/epd2in7_V2.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def Clear(self):
self.send_command(0x24)
for j in range(Height):
for i in range(Width):
self.send_data(0xFF)
self.send_data(0XFF)
self.TurnOnDisplay()

def display(self, image):
Expand Down Expand Up @@ -446,7 +446,7 @@ def display_Partial(self, Image, Xstart, Ystart, Xend, Yend):

def display_4Gray(self, image):
self.send_command(0x24)
for i in range(0, 5808): # 5808*4 46464
for i in range(0, 48000): # 5808*4 46464
temp3 = 0
for j in range(0, 2):
temp1 = image[i * 2 + j]
Expand Down Expand Up @@ -478,7 +478,7 @@ def display_4Gray(self, image):
self.send_data(temp3)

self.send_command(0x26)
for i in range(0, 5808): # 5808*4 46464
for i in range(0, 48000): # 5808*4 46464
temp3 = 0
for j in range(0, 2):
temp1 = image[i * 2 + j]
Expand Down Expand Up @@ -517,4 +517,4 @@ def sleep(self):

epdconfig.delay_ms(2000)
epdconfig.module_exit()
### END OF FILE ###
### END OF FILE ###

0 comments on commit 5e9a73f

Please sign in to comment.