waveshare213b and waveshare213c support bug fixes

This commit is contained in:
mohesh.mohan
2019-12-12 00:37:24 +04:00
parent eddcf32b62
commit a4daf4af61
2 changed files with 26 additions and 17 deletions

View File

@ -134,6 +134,16 @@ class EPD:
self.send_command(0x12) # REFRESH
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):
self.send_command(0x10)
for i in range(0, int(self.width * self.height / 8)):
@ -156,4 +166,3 @@ class EPD:
epdconfig.module_exit()
### END OF FILE ###

View File

@ -42,7 +42,7 @@ class Waveshare213bc(DisplayImpl):
def render(self, canvas):
buf = self._display.getbuffer(canvas)
self._display.display(buf)
self._display.pwndisplay(buf)
def clear(self):
#pass