@@ -86,6 +86,7 @@ try:
# # you will need to use these two functions for a refresh, or the local brush display will be problematic
# Himage = Image.new('1', (epd.width, epd.height), 255)
# draw = ImageDraw.Draw(Himage)
+ epd.init_Partial()
num = 0
while (True):
draw.rectangle((10, 120, 130, 170), fill = 255)
@@ -518,6 +518,18 @@ class EPD:
Width =int(self.width / 16)+1
Width1 =int(self.width / 8)
Height = self.height
+
+ self.send_command(0x22)
+ self.send_data(0xc0)
+ self.send_command(0x20)
+ self.ReadBusy()
+ self.send_command(0x11)
+ self.send_data(0x01)
+ self.send_command(0x91)
+ self.send_data(0x00)
self.send_command(0x44)
self.send_data(0x00)
self.send_data(0x31)