rpi_epd2in7 icon indicating copy to clipboard operation
rpi_epd2in7 copied to clipboard

Rotate display

Open muffl0n opened this issue 6 years ago • 5 comments

Did you think about adding the possibility for rotating the display? The demo for the 2.7" display with three colors has the possibility to do that, would be nice to have this option here, too.

PS: Thank you very much for this very useful project! Would love to help out someday. :)

muffl0n avatar Jun 22 '18 17:06 muffl0n

Hi, I can add image rotation support. Keep in mind that it is easy to rotate in your own code, just pass image.rotate(90, expand=True) to any of the display update functions instead of passing image directly.

It might be more convenient to add another argument to the EPD class init function for specifying rotation degrees, save it, and then rotate on every display update if self.rotation_degrees != 0.

This should be easy to add and doesn't require a lot of Python knowledge, so if you want to help out - I'd accept a pull request to add this feature :)

elad661 avatar Jun 22 '18 18:06 elad661

Thank you very much for your feedback! I will have a look later and am hoping to find the time to submit a PR.

muffl0n avatar Jun 23 '18 13:06 muffl0n

Any update on this. i tried atting image.rotate to the interactive demo but it seems to just ignore it.

sonic2wb avatar Dec 17 '18 01:12 sonic2wb

No. Did you check the docs for image.rotate? Maybe you are using it wrong. https://pillow.readthedocs.io/en/3.1.x/reference/Image.html#PIL.Image.Image.rotate

muffl0n avatar Dec 17 '18 07:12 muffl0n

yep it ignores it...

netlob avatar May 02 '19 09:05 netlob