Display glitching while connecting to WiFi: ESP32S3+8048S043

Whow,
Many thanks Pete.
Will do that. Will let you updated. Because of holidays, it might take 1…3 weeks.
Greetings from the Netherlands

1 Like

Hi @Ernst ,

Enjoy your holiday!

Kind Regards,

Pete

To go this way with this very little effort, Thank you a lot. :smile:
It works great, including touch. On 16MHz and no glitching.
I’ll start analyzing what I have here.

The picture is the project with a changed ‘chart size’ to 600x400 px. Just to use the screen size. (This however, leads to using all cpu power. But thats ok.)

1 Like

Hello @pete-pjb

Using the demo, and getting acquainted with LVGL I have a few questions.
Overwriting a folder content might introduce some problems I have, you might recognize. Thats why I ask you these questions.

I want to introduce a different font on the screen in “rgb_lcd_example_main.c”. After the following things:

  • Create a lv_conf.h file ‘next’ to the lvgl directory. (That is for me a confusing description in the documentation.)

  • Enable another font in lv_conf.h, in my example: “#define LV_FONT_MONTSERRAT_20 1”

  • Add following rather non-fancy code at the end in “lvgl_demo_ui.c”:

    lv_style_init(&styleScrolltext);
    lv_style_set_text_color(&styleScrolltext, lv_color_make(255, 255, 0));
    lv_style_set_text_font(&styleScrolltext, &lv_font_montserrat_20);

    lv_obj_t *label = lv_label_create(scr);
    lv_obj_add_style(label, &styleScrolltext, LV_PART_MAIN);
    lv_label_set_long_mode(label, LV_LABEL_LONG_SCROLL_CIRCULAR);
    lv_obj_set_style_text_color(label, lv_color_make(255, 255, 0), LV_STATE_DEFAULT); // by EL
    lv_label_set_text(label, "This is a looong scrolling text. ");
    lv_obj_align(label, LV_ALIGN_TOP_MID, 0, 0);
    lv_obj_set_width(label, 100);

After this, the compiler can compile, but the linker can’t link. The message is "undefined reference to `lv_font_montserrat_20’ "

The not understood thing is that using the default font ‘lv_font_montserrat_14’ in the code above is working fine.
Any ideas?

Hi @Ernst ,

If you are using VSCode I believe you need to use the SDK Configuration Editor instead of editing lv_conf.h. From the command palette select ESP-IDF:SDK Configuration editor (menuconfig) and go to the LVGL Configuration->font usage->Enable Built-in fonts:

I hope that helps.

Kind Regards,

Pete

1 Like

Hi Pete,
Thnx again. It worked. The editor is confused as it does not recognize the new enabled fonts. But, I will find that issue.Still a lot to discover comparing this IDE with Arduino IDE.

Tip for others: Also here it is the place to switch off the performance indicator 'CPU usage and FPS count.

Greetings
Ernst

1 Like

After days of struggling with VS Code it is somehow impossible for me to understand the project setup, to reproduce the project or to create a new project. Is there a step by step manual for what you did?