Browse Source

Fixed the python local flash issue of Raspberry PI 5.79

shhds 2 months ago
parent
commit
155d89a022

BIN
E-paper_Separate_Program/10.85inch_e-Paper/10.85inch_e-Paper.zip


+ 1 - 0
RaspberryPi_JetsonNano/python/examples/epd_5in79_test.py

@@ -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)

+ 12 - 0
RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd5in79.py

@@ -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)