How to display an indexed 8 bit image in LVGL?


How to display an Indexed 8 bit image using LVGL?

What MCU/Processor/Board and compiler are you using?

Lvgl VSCode simulator

What LVGL version are you using?


What do you want to achieve?

Display an indexed 8 bit image using LVGL

What have you tried so far?

I had created an image descriptor for the image buffer and set its mode to ‘LV_IMG_CF_INDEXED_8BIT’ and tried to set the palette color of indexed image using ’ lv_img_buf_set_palette(lv_img_dsc_t) *dsc, uint8_t id, lv_color_t c)’ function, but doesn’t yield any results. Is there any other functions to be called to display the image?