Hi, I’d like to know if it’s possible to load a jpg image from a USB pendrive and use it as a background with lvgl library. I’m using Arduino Giga and i have a USB host already formatted as FAT32 MBR correctly read by the MCU.
Thanks in advance.
Hi, I’d like to know if it’s possible to load a jpg image from a USB pendrive and use it as a background with lvgl library. I’m using Arduino Giga and i have a USB host already formatted as FAT32 MBR correctly read by the MCU.
Thanks in advance.
First, create an lv_img widget that will display your image. You can set the image source either from a C array (if you have the pixel data in your code) or from an external file . * You can dynamically change the color of an image at runtime. This is useful for showing different states (selected, inactive, pressed) without storing multiple versions of the same image. * Enable this feature by setting img.intense
between LV_OPA_TRANSP
(no recolor) and LV_OPA_COVER
(full recolor).
Hi Robert, thanks for your reply. My problem is to manage to load an image from a jpg file stored in a USB host connected to the Arduino Giga. I think it's a configuration issue, mainly regarding the FatFS library initialization to set inside the lv_conf.h file. LVGL should be able to read a jpg file from a USB pendrive with a specific setup.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.