-
Notifications
You must be signed in to change notification settings - Fork 45
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
Displaying text #14
Comments
Hi @tmedelnick many thanks for your report! Will look into that. Currently not really able to work on this due to long COVID but it gets better. I already have some source code from issue #4 which may comes in handy as well. Haven't looked it up yet but it is on my road map for EOW :) I only do have 32x32 pixel display (waiting for the second one to arrive) and I have no plans to extend my personal displays to 16x16 as well, therefore I would kindly ask you to test everything once I got sorted it out. Thanks in advance! Kind Regards, |
Hi, ability to display text has been added. Still not perfect, but good enough for a first test run :) |
Hi @tmedelnick, looked further into the source code and checked for possible display sizes like 16x16 and 32x32. I only have the 32x32 model and can use your findings to have a smaller text displayed correctly. Unfortunately it seems impossible to generate custom sizes like 14x14 pixels per character and concatenate them. This will not be displayed properly. See derkalle4/python3-idotmatrix-library@c59d956 for my changes made to the library. To achieve a correct font spacing for 16x16 (and also 32x32) I would use the following settings: image_width = 8 when I use the default settings I have a bigger spacing, which is way too big for me: image_width = 16 Haven't tested all settings in between but they didn't seem to work. |
Some findings for text for a 16x16 display.
The app code is not that clear what to set for other sizes.
I've got some code which works, but needs some more work.
Text generally displays some bitmap data with some text color and background color.
Following is for a 16x16 display, the app code is not very clear what to set in bitmap_header and header for other display sizes, see below.
Need to compare the data, which is sent over bluetooth.
Bitmap data needs to be 8 pixel wide, 16 pixel high (for 16x16 display)
The app generates bitmap data from painting on a canvas. Font size is fixed to 8x12 (???)
The app code also contains data for a 5x8 pixel font (which is not used???).
Font 5x8 bitmap for character 'A' and 'B' (upper 3 bits always 0)
Bitmap data for 16x16 display
One character: bitmap height 16 pixel, width 8 pixel
2 lines of characters with 5x8 pixel font possible
Data per character
bitmap_header per character + bitmap data
Header for complete bitmap
Chunking like in GIF code
The text was updated successfully, but these errors were encountered: