Open zhs628 opened 4 months ago
Thanks, that was actually a ToDo which is open ;) I'll check on this over the next days and push an update to the library :)
Hi @zhs628,
I currently do not understand why it shows more characters for you. Can you explain it to me? I also looked into the topic and added newly found things to #14 - where you can see my latest attempts to update the library. We would need something that works with all display sizes (16x16, 32x32 and 64x64) :)
Sorry, I didn’t specify the functionality and process. I will further explain how to transmit a 32x32 image to a 32x32 screen through the text interface.
First, I generate a complete 32x32 image based on the input text, then I cut it along the vertical midline into two halves (16x32), and then convert each of them into a bitmap. Finally, I prepend b"\x05\xff\xff\xff" to each of the bitmaps and concatenate them to create a byte_stream that can display a perfect 32x32 image on a 32x32 screen.
First of all, thank you to this project for unlocking greater potential for iDotMatrix in the hands of users.
While researching the library you’ve written, I intend to implement a small feature that can monitor keyboard inputs in real time and update them to iDotMatrix. However, I unexpectedly found that the _StringToBitmaps implemented in the Text class seems to only display two characters on the screen. Based on this, I made some modifications so that the program can arrange as many characters as possible on the screen based on the set character size (“char_width”, “char_height”).
I only have a 32x32 screen, sorry for not being able to adapt to 16x16 and 64x64 screens, hope the above content can bring you some convenience for your development❤️.