소스 검색

Fix for Bug #156

Manish Khanna 4 년 전
부모
커밋
4a105c992b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in7.py

+ 1 - 1
RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in7.py

@@ -410,7 +410,7 @@ class EPD:
             for x in range(imwidth):
                 for y in range(imheight):
                     newx = y
-                    newy = x
+                    newy = self.height - x - 1
                     if(pixels[x, y] == 0xC0):
                         pixels[x, y] = 0x80
                     elif (pixels[x, y] == 0x80):