waveshare213b and waveshare213c support bug fixes
This commit is contained in:
@@ -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 ###
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user