-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
Changed default orientation to Auto for TS100, TS80(P) & Pinecil ... #1168
Conversation
and some cleanup
Hi, |
Good morning Sir, However I would like to keep it hidden like that, until it is needed. Do you mean to revert the change, or was your concern just about removing the code entirely? Are you good with the change of the default orientation? |
I like the inverted screen, can we keep it? |
@Johnex |
@Ralim kind regards |
If you can please swap those settings entries back would be great so we dont mess with settings on upgrade :) What was the gui tweak for? |
@Ralim Sorry for turning knobs not knowing what they are meant for. 😅 |
Auto would be great, i usually set it to auto first thing i do 👍 |
@discip No problem at allll, that is what I'm here to check 😁 |
@Ralim
IronOS/source/Core/Threads/GUIThread.cpp Lines 558 to 563 in 26493c0
Why I am not able to shift this down by a pixel? It results in showing only the lower half of the digits. 🤷♂️😵 thanks in advance |
To remove a big chunk of complexity, the screen driver only supports vertical offsets of 0 or 8 pixels, as otherwise we have to shift every bit in every byte along one, and wrap overflow to the next row. So it gets really messy 😅 By only supporting the two height offsets (0/8) it removes a big chunk of code that I didn't feel like writing |
Thank you for the explanation. 😃👍 I would need to shift the large digits down by only 1 pixel to make them align properly. |
You can move things horizontally on the screen by one pixel increments no issue. If it is all digits, it is better to shift the fontmap |
Sorry, I meant vertically of course. Where would I find the fontmap? |
Soo...... The font table is here: https://github.com/Ralim/IronOS/blob/master/Translations/font_tables.py In each byte, the LSB (bit0) is the top of that column, and the MSB (bit1) is at the bottom of that column. So to move a symbol "down" a pixel, you want to:
If that is too messy to understand I can try and write some quite python to do the shifts for you. |
Thank you for the thorough explanation. Since I thought of changing all the characters by hand, your proposal is highly welcomed. So you planned on writing a script, that is run once and that would change all the actual characters in the font map. Right? And yes I will open a new issue on that. Have a nice weekend. |
@Ralim
I just noticed that changing the font table, would harm other scenarios, so I unfortunately have to either drop the entire idea, or you help me to make it work for only some cases. 😁 |
... as requested here #1157.
Also some minor changes to
gui.cpp
.