Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
/ lv_fs_if Public archive

LVGL interfaces to various file systems (PC, FatFS)

License

Notifications You must be signed in to change notification settings

lvgl/lv_fs_if

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File System Interface

This repository is merged into the lvgl repository. See https://docs.lvgl.io/master/libs/fs.html

LVGL has a File system module to attach memories which can manipulate with files. Here you can find interfaces to

  • FATFS
  • PC (Linux and Windows using C standard function .e.g fopen, fread)
  • POSIX (Linux and Windows using POSIX function .e.g open, read) file systems.

You still need to provide the drivers and libraries, this repo gives "only" the bridge between FATFS/PC/etc and LittlevGL.

Usage

  1. Add these lines to you lv_conf.h:
/*File system interface*/
#define LV_USE_FS_IF	1
#if LV_USE_FS_IF
#  define LV_FS_IF_FATFS    '\0'
#  define LV_FS_IF_PC       '\0'
#  define LV_FS_IF_POSIX    '\0'
#endif  /*LV_USE_FS_IF*/
  1. Enable an interface you need by changing '\0' to letter you want to use for that drive. E.g. 'S' for SD card with FATFS.

  2. Call lv_fs_if_init() (after lv_init()) to register the enabled interfaces.

About

LVGL interfaces to various file systems (PC, FatFS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages