-
-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Support for font size with 16 bits height in OLED. (#6650) #19827
Conversation
Thank you for your contribution! |
I have fixed it, how do you like it? |
The font on the oled displays is very small, and can't be easily increased at the moment. When the following PR merges, I'll take another look at this. qmk#19827 Until then, this change removes some duplication/boilerplate, and makes it a little easier to differentiate the layers at a glance.
Thank you for your contribution! |
Thank you for your contribution! |
Description
Supports font display of 16 bits in height on OLED. (24 and 32 also supported, not tested)
Narrowed and extracted only the OLED_FONT_HEIGHT (and OLED_FONT_WIDTH) setting from p-r #13233 and added bug fixes.
Also, because the height is more than 2 bytes, the second line becomes the third byte, and the existing "oled_set_cursor" function cannot specify a cursor on the second byte. Therefore, the "oled_set_cursor_raw" function has been added.
About fonts
In the case of 16 dots high and 12 dots wide, the upper half of a character is 12 bytes, and the lower half of a character is 12 bytes immediately after, making every 24 bytes a character.
About font files
The existing font is enlarged to 200%.
The file was created using a modified version of the QMK Logo Editor, which is also featured in the document. I will send the p-r to them as soon as this p-r is merged.
Types of Changes
Issues Fixed or Closed by This PR
Checklist