Hi everyone!
I would like to congratulate the developers for this amazing tool!
So, I am working in a project that uses a monochrome 128*64 display. In this project, my board receives a picture formated in a C array (created by the online tool converter).
The problem occurs as, when I print the picture, although it is perfectly shown on screen, it will never get off the screen. It seems to me that the buffer is always being filled with the image, no matter what I try to show next (other picture, text label, etc.)
The code below is where I show the picture:
void showImage(){
/*************************
* IMAGE FROM SOURCE CODE
*************************/
lv_obj_t * scr = lv_disp_get_scr_act(disp); /*Get the current screen*/
lv_obj_t * img_var = lv_img_create(scr, NULL); /*Crate an image object*/
lv_img_set_src(img_var, &logo_bradesco); /*Set the created file as image*/
lv_obj_set_pos(img_var, 0, 0); /*Set the positions*/
lv_obj_set_drag(img_var, true);
}
I base my project on this exemple: https://github.com/littlevgl/lv_examples/blob/master/lv_tutorial/6_images/lv_tutorial_images.c
So, am I doing something wrong? Could this be a problem on LVGL? I am using the 6.0 version of the library.