Selaa lähdekoodia

fixing Step 4 in epd_7in5_V2_test.py, where height and width were reversed

Daniel Heldt 4 vuotta sitten
vanhempi
sitoutus
fac69bd876
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      RaspberryPi_JetsonNano/python/examples/epd_7in5_V2_test.py

+ 1 - 1
RaspberryPi_JetsonNano/python/examples/epd_7in5_V2_test.py

@@ -68,7 +68,7 @@ try:
     time.sleep(2)
 
     logging.info("4.read bmp file on window")
-    Himage2 = Image.new('1', (epd.height, epd.width), 255)  # 255: clear the frame
+    Himage2 = Image.new('1', (epd.width, epd.height), 255)  # 255: clear the frame
     bmp = Image.open(os.path.join(picdir, '100x100.bmp'))
     Himage2.paste(bmp, (50,10))
     epd.display(epd.getbuffer(Himage2))