2021-11-05 20:02:00 +01:00
..
2020-02-01 00:17:42 +01:00
2020-02-01 00:17:42 +01:00
2020-02-01 00:17:42 +01:00
2021-09-17 16:50:00 +02:00
2021-11-05 20:02:00 +01:00
2020-02-01 00:17:42 +01:00
2020-04-20 17:53:34 +02:00

File System Interface

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

  • FATFS
  • PC (Linux and Windows)
  • SPIFFS (ESP32 and ESP8266) 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_SPIFFS   'F'
#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() to register the enabled interfaces.