|  | пре 5 година | |
|---|---|---|
| examples | пре 5 година | |
| src | пре 5 година | |
| LICENSE | пре 5 година | |
| README.md | пре 5 година | |
| library.json | пре 5 година | |
| library.properties | пре 5 година | 
#define CONFIG_LITTLEFS_FOR_IDF_3_2 in esp_littlefs.c.#define CONFIG_LITTLEFS_xxxxx are set to optimal default values.A quick startup based on your existing code you can re-define SPIFFS
#define USE_LittleFS
#include <FS.h>
#ifdef USE_LittleFS
#define SPIFFS LITTLEFS
#include <LITTLEFS.h> 
#else
#include <SPIFFS.h>
#endif 
| 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
( notes from BlueAndi )
Add to platformio.ini:
extra_scripts = replace_fs.py
Add _replacefs.py to project root directory (where platformio.ini is located):
Import("env")
print("Replace MKSPIFFSTOOL with mklittlefs.exe")
env.Replace (MKSPIFFSTOOL = "mklittlefs.exe")
Add mklittlefs.exe to project root directory as well.