|
|
5 жил өмнө | |
|---|---|---|
| examples | 5 жил өмнө | |
| src | 5 жил өмнө | |
| LICENSE | 5 жил өмнө | |
| README.md | 5 жил өмнө | |
| library.json | 5 жил өмнө | |
| library.properties | 5 жил өмнө |
A quick startup based on your existing code you can re-define SPIFFS like this
#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 |
| SPIFFS | 767 | 65622 |
| LITTLEFS | 916 | 16200 |
<home_dir>/Arduino/tools/ESP32LittleFS/tool/esp32littlefs.jar(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.