-
Notifications
You must be signed in to change notification settings - Fork 111
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
Loading Font/Image data from an external Flash memory (access in the RAM) #674
Comments
Can you share how would you do that from C on your target platform? For example, if you want to change the font for the object then you need to call In Studio, you can add the font and use it to set widget text font. Then Studio will generate the following code (let assume that font name is
Currently, this is the only way to use custom fonts in studio. |
This can be changed if you define |
I think I found a good option here: https://docs.lvgl.io/9.0/overview/font.html So we can load all font data from an external Flash (*.bin file) into the SRAM (buffer) and then assign a font object to it. if you like you can add a feature in the EEZ for the user to select and the code generated by this selection. The same thing should exist for images, I'm searching now. |
I think what you did is for an external QSPI memory and memory mapping. However, since QSPI, XIP, and memory mapping are not available for many MCUs, a lower-level solution is to read an external SPI flash and fill another external SRAM with that data (the addresses are known). Then, assign an LVGL object, either an image or a font, to the SRAM buffer. It would be a good feature if he could support both scenarios (QSPI memory mapping and the one I mentioned) |
Hello,
I want to store the font/image data inside an external flash memory (binary or whatever method), not the memory-mapped method, so it would not be a part of the internal memory to deal similar to an internal memory. So a function should read the data from the Flash and load it all into the SRAM, then LVGL can access it.
How can I follow this in the EEZ Studio, I looked at the generated font file, and I stuck to do what :-)
The text was updated successfully, but these errors were encountered: