You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using the round display with the XIAO nRF52840 (Sense) with the Arduino GFX library. I was able to use images with lvgl version 8.3.4 but I wanted to upgrade to 9.2.0 so i can do non-uniform scaling on images. However, while my code compiles and there are no errors the image is not shown. I used the v9 converter here https://lvgl.io/tools/imageconverter and tried the 565 and 565A8 encoding but neither worked. I have tried using different versions of the conf_h file to get it to work but while both 8.3 and 9.2 conf_h file versions compiled neither displayed the image. Lastly I had to change the lv_image_dsc_t in both 8.3 and 9.2 versions to work. For 8.3 this style worked perfectly:
but for version 9.2, while the program compiled the image did not display:
const lv_image_dsc_t tile000 = {
{
LV_COLOR_FORMAT_RGB565,
LV_IMAGE_HEADER_MAGIC,
64,
64,
},
4096 * 2,
tile000_map,
};
Any and all help is greatly appreciated!
The text was updated successfully, but these errors were encountered:
@Gabinson200 When I use nRF52840, I find that there are compilation errors in the dependent Arduino GFX library. I will further investigate. Your further feedback is also welcome.
Thank you for the help, I have kind of found a workaround for what I wanted from the lvgl 9.2 function in 8.3. But in short the issue was that my program which creates images by importing the hex code from a .h file in the form described above:
lv_obj_t *sprite_img = lv_img_create(lv_scr_act());
// Set the image source
const lv_img_dsc_t *src = sprite_images[i % num_sprites];
lv_img_set_src(sprite_img, src);
was unable to display (probably decode) the images.
here is a link to my github where I uploaded the code if additional info is needed. The program is basically a sprite stacking code so I can create pseudo 3d images / animations in lvgl + some really jank touch control that I'm trying to fix right now.
Hello, I'm using the round display with the XIAO nRF52840 (Sense) with the Arduino GFX library. I was able to use images with lvgl version 8.3.4 but I wanted to upgrade to 9.2.0 so i can do non-uniform scaling on images. However, while my code compiles and there are no errors the image is not shown. I used the v9 converter here https://lvgl.io/tools/imageconverter and tried the 565 and 565A8 encoding but neither worked. I have tried using different versions of the conf_h file to get it to work but while both 8.3 and 9.2 conf_h file versions compiled neither displayed the image. Lastly I had to change the lv_image_dsc_t in both 8.3 and 9.2 versions to work. For 8.3 this style worked perfectly:
const lv_img_dsc_t tile000 = {
.header = {
.cf = LV_IMG_CF_TRUE_COLOR_ALPHA,
.always_zero = 0,
.reserved = 0,
.w = 64,
.h = 64,
},
.data_size = 4096 * LV_IMG_PX_SIZE_ALPHA_BYTE,
.data = tile000_map,
};
but for version 9.2, while the program compiled the image did not display:
const lv_image_dsc_t tile000 = {
{
LV_COLOR_FORMAT_RGB565,
LV_IMAGE_HEADER_MAGIC,
64,
64,
},
4096 * 2,
tile000_map,
};
Any and all help is greatly appreciated!
The text was updated successfully, but these errors were encountered: