Description
I am trying do load and show pngs from a SD Card
What MCU/Processor/Board and compiler are you using?
Waveshare ESO32-S3-Touch-LCD-7"
arduion-esp
What LVGL version are you using?
8.4.0
What do you want to achieve?
I would load png’s from sdcard and show them on a tab
What have you tried so far?
I have configured in the lv_conf.h the following settings
#define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
#define LV_IMG_CACHE_DEF_SIZE 100
#define LV_USE_FS_STDIO 1
#define LV_FS_STDIO_LETTER 'S'
#define LV_USE_PNG 1
for creating the image I use the following code
lv_obj_t* image_ = lv_img_create(tab5);
lv_obj_set_width(image_, 200);
lv_obj_set_height(image_, 200);
lv_obj_align(image_, LV_ALIGN_CENTER, 0, 0);
lv_img_cache_invalidate_src(NULL);
lv_img_set_src(image_, "S:/02d_t.png");
lv_obj_t* label_ = lv_label_create(tab5);
lv_label_set_text(label_, "Test");
lv_obj_align(label_, LV_ALIGN_CENTER, 0, 100);
lv_obj_set_style_text_color(label_, lv_color_white(), 0);
lv_obj_set_style_text_font(label_, &lv_font_montserrat_12_umlaut, 0);
for testing I also added a textlabel and this is shown. I do not recive any error on the screen and also not in the Serial Monior