I tried to use the 32 bit image in LVGL, but i’m unable to show this type of image.
What MCU/Processor/Board and compiler are you using?
What LVGL version are you using?
What do you want to achieve?
I want to show a 32 bit image on my display.
What have you tried so far?
I have created a bmp image using paint. I have saved the image as 24 bit bmp and after, using LVGL image converter, I create a C array using the true color chroma key option. The lv_conf is configured as you see in the next section.
However the image that my display show are different from the original.
I miss something?
Code to reproduce
/* Color depth: * - 1: 1 byte per pixel * - 8: RGB233 * - 16: RGB565 * - 32: ARGB8888 */ #define LV_COLOR_DEPTH 32 /* Swap the 2 bytes of RGB565 color. * Useful if the display has a 8 bit interface (e.g. SPI)*/ #define LV_COLOR_16_SWAP 0 /* 1: Enable screen transparency. * Useful for OSD or other overlapping GUIs. * Requires `LV_COLOR_DEPTH = 32` colors and the screen's style should be modified: `style.body.opa = ...`*/ #define LV_COLOR_SCREEN_TRANSP 1
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.