rpi_epd2in7
rpi_epd2in7 copied to clipboard
Rotate display
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. :)
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 :)
Thank you very much for your feedback! I will have a look later and am hoping to find the time to submit a PR.
Any update on this. i tried atting image.rotate to the interactive demo but it seems to just ignore it.
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
yep it ignores it...