Преглед изворни кода

Merge pull request #157 from mk-in/master

Mirrored text display in 4Gray Horizontal Display
SSYYL пре 4 година
родитељ
комит
a69c0eedf2
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):