Description
After completing in simulator the program i started to transfer it to esp32 and a ili9488 screen.
The folder used in simulator for the complete program is copied on the esp32 project.
In one . c file image declare function is used. Then a set background is called. In any case this function is the same but in display we get empty screen and in simulator it works properly.
What MCU/Processor/Board and compiler are you using?
esp32,
What LVGL version are you using?
8.3/release
LV_IMG_DECLARE(str_background);
void str_set_mv_background_img(){
lv_obj_t* bg = lv_img_create(main_page);
lv_img_set_src(bg, &str_background);
}
In the CmakeList:
idf_component_register(
SRCS "main.c"
"lv_port_disp.c"
"lv_port_indev.c"
"../components/str/str_ui.c" # list the source files of this component
"../components/str/global_vars.c" # list the source files of this component
"../components/str/str_mv.c" # list the source files of this component
"../components/str/images/str_background.c" # list the source files of this component
INCLUDE_DIRS # optional, add here public include directories
PRIV_INCLUDE_DIRS # optional, add here private include directories
REQUIRES # optional, list the public requirements (component names)
PRIV_REQUIRES # optional, list the private requirements
)
## Screenshot and/or video
The simulator
(upload://oZXQpkv10lCFK10wWdscUJjsF0j.png)
The esp32:
(upload://caJJlyClPlrVO2tNI1AHZgcOAXo.jpeg)