GregDMeyer / IT8951

Driver for the IT8951 e-paper controller on Raspberry Pi
MIT License
155 stars 55 forks source link

Rotation #3

Closed SirDagen closed 5 years ago

SirDagen commented 5 years ago

I am trying for an hour now. How can I use the display vertically. I can flip it, but how to use it vertically?

I use PIL to draw an vertical image (1404x1872 instead of 1872x1404) and would like to push it to the display...

GregDMeyer commented 5 years ago

I think the best way to do it is just to rotate your image using img.rotate(90, expand=True) (or similar) before adding it to the frame buffer. (If you come up with a better way, would love to hear it!)

SirDagen commented 5 years ago

Oh my, you really know your trade. That's a nice solution. Thank you