File System Interfaces¶
LVGL has a File system module to provide an abstraction layer for various file system drivers.
LVG has built in support for:
STDIO (Linux and Windows using C standard function .e.g fopen, fread)
POSIX (Linux and Windows using POSIX function .e.g open, read)
WIN32 (Windows using Win32 API function .e.g CreateFileA, ReadFile)
You still need to provide the drivers and libraries, this extension provides only the bridge between FATFS, STDIO, POSIX, WIN32 and LVGL.
LV_USE_FS_... and assign an upper cased letter to
After that you can access files using that driver letter. E.g.
The work directory can be set with
"/home/joe/projects/" The actual file/directory paths will be appended to it.
Cached reading is also supported if
LV_FS_..._CACHE_SIZE is set to not
lv_fs_read caches this size of data to lower the number of actual reads from the storage.