Important: unclear posts may not receive useful answers.
Before posting
Get familiar with Markdown to format and structure your post
Be sure to update lvgl from the latest version from the master branch.
Be sure you have checked the FAQ and read the relevant part of the documentation.
If applicable use the Simulator to eliminate hardware related issues.
Delete this section if you read and applied the mentioned points.
Description
What MCU/Processor/Board and compiler are you using?
ARM M33
What LVGL version are you using?
8.4
What do you want to achieve?
Show the image
What have you tried so far?
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The “Runner” image is I loaded from RAM use Jlink, so that means the data is right. The second picture is it show in the tft.
So I do not know which part is wrong.
Hello,
It looks to me like your data is not being sent to this display on time or just improperly altogether. Have you tried running a demo? If they also have this issue, it has nothing to do with showing the image.
This screen is more complex than the testing screen, but everything is right, I use same way.
The problem screen, is a content, I show a content and show the words on it.
Try get more info, how is your flash capacity, how font sizes you require etc.
Try you use compress parameter for font generator ? Font Converter — LVGL
Ok then i mean you search and know FreeType Support — LVGL 9.3 documentation
, but back to your issue.
Is very simmilar to +1 error in flush width… Mayby your generated and used width differ, then image is draw every line shifted… Check or try manipulate
FreeType is need too much memory, I tried it in other MCU. So we develop our ttf platform, it can reduce the RAM requeirnment. It can output the grey 8bit for a word or a character. We use it in many MCU platform with LVGL, but this strange thing is first time.
I can try the FreeType on this MCU.
I create two image objects, and one is show right another is wrong. I use lv_img_set_src change the wrong object image data to the right one. But the wrong object still wrong.
MY code:
ShowUTF8TextImage(&m_CurrentEarPhoneImage, &g_NameArray[m_MACShowCounter][0], 0, guider_ui.screen_cont_Setup, 1);
ShowUTF8TextImage(&m_BTMacArray[m_MACShowCounter], &g_NameArray[m_MACShowCounter][0], 0, guider_ui.screen_cont_Setup, 0);
lv_img_set_src(m_BTMacArray[m_MACShowCounter].pFontImage, m_CurrentEarPhoneImage.pImg_dsc);
lv_obj_clear_flag(m_BTMacArray[m_MACShowCounter].pFontImage, LV_OBJ_FLAG_HIDDEN);