Fixing some issues with 9.7" E-Paper displays

test() saves assembled images now.
If the 9.7" E-Paper is selected, the images are now flipped correctly.
This commit is contained in:
Ace
2020-11-25 14:24:29 +01:00
parent 578f48d24d
commit bcc512d1cc
2 changed files with 15 additions and 5 deletions

View File

@@ -84,10 +84,6 @@ class Display:
if self.supports_colour == False:
print('Initialising..', end = '')
epaper.init()
# For the 9.7" ePaper, the image needs to be flipped by 90 deg first
# The other displays flip the image automatically
if self.model_name == "9_in_7":
im_black.rotate(90, expand=True)
print('Updating display......', end = '')
epaper.display(epaper.getbuffer(im_black))
print('Done')