-
Notifications
You must be signed in to change notification settings - Fork 56
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
Adding an orientation option? #121
Comments
Allowing rotation for the text element sounds like a good idea, at least for 90 degree rotations. What do you mean by modifying all coordinates? Plato uses libremarkable, so anything it does is possible using the library as-is... |
On plato, I translate the pixel coordinates manually when a rotation is used for the rM 2, because the shim does not support specifying a framebuffer rotation afaik. For the rM1 it is possible to just set the rotation in some metadata, which I should do there as well. That approach is not very popular though. I think it can break/confuse launchers as they're always assuming portrait mode. I'm not sure rn how much work it would be to have the elements rotate. Do you use the app with lua support or the framebuffer for ui work? The orientation you mentioned indeed is only there for readouts and translating input coordinates to portrait. Would be an interesting idea to use the same mechanism to sw rotate all write_pixel calls as well. Not too sure how that would then play together with the inputs. |
Not just launchers, but also other applications that might be running at the same time. Nothing has been designed to support the framebuffer being rotated, so it's probably best not to use it, especially if you want to target the rM2 as well. |
Oh I see tks. I didn't read in detail your plato app, I thought you did something like that haha. But since it is mainly the text which is problematic, it is maybe overkill to do more.
I use the framebuffer for ui work
Didn't thought of the inputs, what are you worry of exactly? |
Hello !
Would it be possible to add an orientation option to the libremarkable? I want to make an UI in landscape rather than in portrait. I didn't find any direct way (rotate seems interesting, but is currently only used to access the orientation?).
It is the text element who is at stake here because we can modify easily the picture, but idealy, I think it would be better to modify all the coordinates (for ex as in this project : https://github.com/LinusCDE/plato)
Thanks in advance !
The text was updated successfully, but these errors were encountered: