Closed wisemoth closed 1 year ago
I am having the same issue with the phat. @wisemoth did you do anything to fix this?
@gleich I'm afraid not - I ended up drawing the UI in landscape mode, but would still prefer to run in portrait mode if that became possible.
Inky just uses a Pillow Image
to draw the UI, you can draw into a portrait image and rotate that to landscape before sending it to display.set_image()
IE:
from PIL import Image
img = Image.new("P", (300, 400))
inky.set_image(img.rotate(90, expand=True))
I can set
self.rotation
to be0
and180
without issue.However if I set to
90
or270
the display is garbled. It looks like there is library code to support 90 degree rotation, but am I expected to flipwidth
andheight
in my own code or? Are there examples?