File Explorer for LVGL

Hi all!

I have read that there is a file system driver in lvgl. As far as I’ve seen this is just for reading assets from SD card and we should provide some functions to port? First question if petit fat or fatfs from elm-chan are enough and able to meet lvgl porting functions requirements? And is there any example with those libraries?

Secondly is there any implementation like widget, component to explore files in the SD card or drive?

For example if I want to make music player or text reader does lvgl help me to explore files?

cheers

Anything that supports opening and reading files can be used with the LittlevGL filesystem. There are some example implementations here: GitHub - lvgl/lv_fs_if: LVGL interfaces to various file systems (PC, FatFS)

There isn’t a built-in widget to do this, however, I typically just use the list widget and add extra functionality via event handlers for things like deletion, etc.

1 Like

Hi embeddedt thanks a lot for the example this is what i need.

For the second issue it is not vital at the moment i will in that way as u said in case i need.

cheers,

Hi, now we have file_explorer can meet your needs and is still trying to add more functions.

1 Like

Hi there,
Thanks for this tip. It actually lead me to upgrade LVGL to 9.0, but still didn’t found any way to use it in embedded devices.
I wrote this new Issue to see if someone can help using File Explorer with ESP32 or any other embedded device.
I’ve checked the example and the related C files and I don’t see any clear way to tell the File Explorer: This is my FS system please use this callback functions to access