LittleFS library for arduino-esp32
Note, there it is renamed from LITTLEFS to LittleFS, Please post your issues there. This here is kept for Arduino esp32 core 1.x purposes
#define CONFIG_LITTLEFS_FOR_IDF_3_2 in esp_littlefs.c.#define CONFIG_LITTLEFS_SPIFFS_COMPAT in esp_littlefs.c.#define CONFIG_LITTLEFS_xxxxx are set to optimal default values.#define USE_LittleFS
#include
#ifdef USE_LittleFS
#define SPIFFS LITTLEFS
#include
#else
#include
#endif #define CONFIG_LITTLEFS_SPIFFS_COMPAT 1 | Filesystem | Read time [ms] | Write time [ms] |
|---|---|---|
| FAT | 276 | 14493 |
| LITTLEFS | 446* | 16387 |
| SPIFFS | 767 | 65622 |
*The read speed improved by changing #define CONFIG_LITTLEFS_CACHE_SIZE from 128 to 512
See LITTLEFS_PlatformIO example here
( based on notes below from BlueAndi )
Add to platformio.ini:
extra_scripts = replace_fs.py
Add replace_fs.py to project root directory (where platformio.ini is located):
Import("env")
print("Replace MKSPIFFSTOOL with mklittlefs.exe")
env.Replace (MKSPIFFSTOOL = "mklittlefs.exe")No open issues yet, or sync has not completed.