-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add TileGrid example that uses the built in font to display text #2566
Comments
from discord:
|
I'm not sure I understand what can/can't be used here? Like how far down the rabbit hole are we going? Wouldn't a multi-line example without using |
@caternuson This stems from discussion over the memory usage of Label. There is a way to display text using a built-in font that uses much less RAM memory than Label does, by having a single TileGrid rather than a TileGrid for each character. |
@jepler Ah, thanks. I think that was the clarification I was after. |
|
I'm the newbie that made the request in Discord. I was looking for a complete working example/demo that would run as code.py and be included in the /examples folder of the libs. I guess this class is the first step towards that. |
Updated version of gridlabel (there was at least one bug, hopefully fixed): https://gist.github.com/e7a159b28048dc8637f69db17caba5ea @gmeader Being new to something is an exciting time, enjoy it! |
@gmeader We discussed this in the CIrcuitPython chat, and @tannewt would like to see this made into a pull request in the https://github.com/adafruit/Adafruit_CircuitPython_Display_Text -- both this module and an example. Would you be interested in helping us out on this? |
Yes, happy to help. |
I think GridLabel should have a "color" property (not just the constructor param) that may be set and read. |
Thank you! I definitely agree with adding a "color" property. This would make the GridLabel more like the existing Label, which has a color property. I think adding a background constructor and property is fine, if it is useful. |
Here is another example of using text in a tileGrid: https://github.com/kmatch98/simpleTerminal In modifying a text editor for use with CircuitPython (see the modules branch of the MicroPython editor pye), I developed a Performance-related issue for As mentioned by @jepler and @caternuson, the performance of the I'm struggling with the performance of edit: Just found the function for load_glyphs. It takes a while to load the glyphs, but the actual label creation (or text value changes) is at a more reasonable level. Feel free to ignore the question above.
|
Is this done? |
I think so? Looks like it became a PR? |
This appears to have been fixed/done back in 2020. see Display_text #75 PR |
closing |
Similar to terminalio but without using it.
The text was updated successfully, but these errors were encountered: