hello together
i have converted a png image to a c array with the converter and now i want to display it on an esp-s3 7 inch screen.
at the beginning i could not complicate the code, had the same problem as here:
I’m trying to use images in LVGL. I’ve converted it via the online converter just as the docu says.
I’ve tried this once before but moved on, but it’s time to make it work.
It gives error for the dots at the bottom. I have added include of Arduino.h as well. This is the error I get:
In file included from src\main.cpp:7:0:
src\images/SoS_Skull.c:735:3: error: expected primary-expression before '.' token
.header.always_zero = 0,
^
src\images/SoS_Skull.c:736:3: error: expected primary-expr…
have then adapted it for me:
const lv_img_dsc_t sun = {
{LV_IMG_CF_TRUE_COLOR,
0,
0,
48,
48},
2304 * LV_COLOR_SIZE / 8,
sun_map
};
but now it looks like this on the display? the image is a small sun.
anyone have an idea what it can be? esp graphic display:
lv_obj_t *img = lv_img_create(lv_scr_act());
lv_img_set_src(img, &sun);
lv_obj_align(img, LV_ALIGN_CENTER, 0, 0);
thank you very much!
can be closed, as always the trouble sits in front of the computer:D
have included it incorrectly.
we call that a PEBKAC problem. Problem Exists Between Keyboard And Chair.
Another one that is used in the IT world is “id ten t” which is actually ID10T (IDIOT)
That wasn’t directed at you at all LOL.
We used it in the IT department for internal verbal communication to explain what the problem was if the problem was major user error.
1 Like