waveshare213b and waveshare213c support bug fixes
This commit is contained in:
pwnagotchi/ui/hw
@ -134,6 +134,16 @@ class EPD:
|
|||||||
self.send_command(0x12) # REFRESH
|
self.send_command(0x12) # REFRESH
|
||||||
self.ReadBusy()
|
self.ReadBusy()
|
||||||
|
|
||||||
|
def pwndisplay(self, imageblack):
|
||||||
|
self.send_command(0x10)
|
||||||
|
for i in range(0, int(self.width * self.height / 8)):
|
||||||
|
self.send_data(imageblack[i])
|
||||||
|
self.send_command(0x92)
|
||||||
|
|
||||||
|
self.send_command(0x12) # REFRESH
|
||||||
|
self.ReadBusy()
|
||||||
|
|
||||||
|
|
||||||
def Clear(self):
|
def Clear(self):
|
||||||
self.send_command(0x10)
|
self.send_command(0x10)
|
||||||
for i in range(0, int(self.width * self.height / 8)):
|
for i in range(0, int(self.width * self.height / 8)):
|
||||||
@ -156,4 +166,3 @@ class EPD:
|
|||||||
|
|
||||||
epdconfig.module_exit()
|
epdconfig.module_exit()
|
||||||
### END OF FILE ###
|
### END OF FILE ###
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ class Waveshare213bc(DisplayImpl):
|
|||||||
|
|
||||||
def render(self, canvas):
|
def render(self, canvas):
|
||||||
buf = self._display.getbuffer(canvas)
|
buf = self._display.getbuffer(canvas)
|
||||||
self._display.display(buf)
|
self._display.pwndisplay(buf)
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
#pass
|
#pass
|
||||||
|
Reference in New Issue
Block a user