Possible with lvgl 8.4 to read assets with arduino sd library?

Hi,
before i try around…

I use lvgl 8.4 and ESP32S3 Board. I can read and write on SD-Card using the SD Library from Arduino. Works fine.

I try a lot to read assets from sd-card, even as png and also as binary from converter.
In the latest release it is directly possible but for now i use 8.4 and there is no real reason to update for me, because all other things works fine.

Question: Is the a way to use it or is the update to 9.2 a must for that?

Thanks in advance.

I don’t understand the question very well, but if you are good with version 8.4, then keep using it because in version lvgl 9, as far as I know, there are quite a few changes in functions, structures and lv_config, but it’s still worth a try if you want.

Finally i get it to work. With 8.4 and SD Library. If someone need help, ask me.

Hey Alex! I’m struggling with this exact same problem. Mind giving me a hand? :slight_smile:

Hi,

yes sure. Sorry for late reply. I have now a library to load images from SD and use it in LVGL

Hi again Alex,
I was finally able to get it running by adapting the lvgl 9 arduino sd card code to version 8. If somebody needs it i’ll be happy to asist, since i had to modify a few files to get it running correctly.

I’m using 8.3 and have issue loading images from SD. How were you able to resolve this?

Hi Alex,
I am glad to see that you succeed where I am struggling.
I am using Arduino Ide with LVGL 8.4 & Elecrow DIS8070H.
The goal I want to achieve is to visualize on a 800x480 display,BMP or JPG images stored into the SD.
Just to tell you the actual status:

  • SD is connected
  • I can list the files into the SD
  • I can run LVGL widgets on the screen
  • I can visualize images in bmp format not using LVGL
  • I can visualize image in C format converted through the online converter
  • I AM NOT ABLE TO VISUALIZE IMAGE DIRECTLY FROM THE SD using LVGL.
    I really am not able to even understand where I am doing wrong ( Most probably it is something very basic )
    Can you share an Arduino sketch just doing this?
    Thanks