Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invert display so the Pi can have any orientation #90

Closed
mashedkeyboard opened this issue Mar 17, 2017 · 18 comments
Closed

Invert display so the Pi can have any orientation #90

mashedkeyboard opened this issue Mar 17, 2017 · 18 comments

Comments

@mashedkeyboard
Copy link

I'd love to be able to use PaPiRus with my Pi Zero "upside down" as considered by the PaPiRus HAT - with the text being displayed the right way up.

Could we have a "setOrientation()" in a future build?

@shawaj
Copy link
Member

shawaj commented Mar 17, 2017

Related to #84

@shawaj shawaj mentioned this issue Mar 17, 2017
@shawaj
Copy link
Member

shawaj commented Mar 17, 2017

In framebuffer / fbtft this can be done by specifying clockwise rotations from standard - 90, 180, 270 - think this would be our best bet

@3DJupp
Copy link

3DJupp commented Mar 20, 2017

i would like to have an option which allows me to rotate the screen by 180°
(to attach the RPi Zero W to the Wall and to have the cable running underneath)

@shawaj
Copy link
Member

shawaj commented Mar 20, 2017 via email

@3DJupp
Copy link

3DJupp commented Mar 24, 2017

Hey @shawaj
Now, since the PaPiRus is working with the latest kernel on my Pi Zero W, I would like to have the correct orientation on my ePaper.
Is there any way to do this before: image.write?
I only display Text right now, so inverting the font would be to complicated.
Instead: Displaying an image could easily be manipulated.

@shawaj
Copy link
Member

shawaj commented Mar 24, 2017 via email

@3DJupp
Copy link

3DJupp commented Mar 25, 2017

Thats my code:
https://github.com/Dom1n1c/PaPiRus-MQTT/

@shawaj
Copy link
Member

shawaj commented Mar 25, 2017 via email

@3DJupp
Copy link

3DJupp commented Mar 25, 2017

it listens for mqtt topics and then it'll print them to the display 😄
Here you can find a picture of the PaPiRus Zero running this script
https://community.openhab.org/t/using-an-epaper-eink-display-as-energy-temperature-monitor-mqtt/16954/2

@3DJupp
Copy link

3DJupp commented May 6, 2017

Any news on rotating the screen (changing the orientatiion)?

Thanks :)

@francesco-vannini
Copy link
Contributor

Hi @dom1n1c, I believe that would in fact require some work on the EPD driver what do you think @tvoverbeek ?

@tvoverbeek
Copy link
Contributor

@dom1n1c @francesco-vannini No need to modify the repaper/gratis driver.
Should be possible to handle this on the python side using the PIL library.
But requires careful splitting of physical screen coordinates and size (post rotation) and virtual screen coordinates and size (pre rotation).
180 deg should be easier (no change in screen height and width), 90 and 270 requires more work

@quavoce
Copy link

quavoce commented May 14, 2017

I too would really like this feature please.
My use case would be to have dynamically updating text aligned next to the buttons on a PiZero, in portrait mode with the 2″ diagonal (200 x 96 resolution) display (or the larger ones too which would have more space for portrait text).
If I could write text in portrait mode (90 degrees), I would position the text using x/y values.
I do realise I could use multiple images for each button status, but having dynamic text would be easier.
Thanks!

@tvoverbeek
Copy link
Contributor

See my PR #119 Hopefully will get merged soon. Otherwise clone my repository

@quavoce
Copy link

quavoce commented May 14, 2017

Brilliant! Can't wait to try this out, thank you!

@shawaj
Copy link
Member

shawaj commented May 14, 2017

Think @francesco-vannini was playing with this but got distracted with some other stuff at tail end of last week. Will get it merged this coming week :-)

@francesco-vannini
Copy link
Contributor

francesco-vannini commented May 14, 2017 via email

@francesco-vannini
Copy link
Contributor

Sorted in #119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants