Merge pull request #157 from mk-in/master

Mirrored text display in 4Gray Horizontal Display
This commit is contained in:
SSYYL 2021-05-12 18:14:43 +08:00 committed by GitHub
commit a69c0eedf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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