No Description

lorol d5c678a076 Updated included examples: 4 years ago
examples d5c678a076 Updated included examples: 4 years ago
src 9734859e8a Testing Arduino FS' LITTLEFS.mkdir(path) and LITTLEFS.rmdir(path) 4 years ago
LICENSE fb074d28dd Initial commit 4 years ago
README.md 9734859e8a Testing Arduino FS' LITTLEFS.mkdir(path) and LITTLEFS.rmdir(path) 4 years ago
library.json 9734859e8a Testing Arduino FS' LITTLEFS.mkdir(path) and LITTLEFS.rmdir(path) 4 years ago
library.properties 3ee159c21e Add files via upload 4 years ago

README.md

LITTLEFS

LittleFS library for arduino-esp32

Warning: It depends on ESP-IDF, esp32 core, esp_littlefs and Mbed LittleFS versions

Installation

  • Copy LITTLEFS to other Arduino IDE libraries
  • (see File > Preferences > Sketchbook location).

Usage

  • use LITTLEFS same way as SPIFFS
  • 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 
    

Differences with SPIFFS

  • LittleFS has folders, you need need to iterate files in folders
  • At root a "/folder" = "folder"
  • Requires a label for mount point, NULL will not work
  • maxOpenFiles parameter is unused, kept for compatibility
  • Speed is 4-5 times faster writing, 1.5 times slower reading
  • LITTLEFS.mkdir(path) and LITTLEFS.rmdir(path)

Arduino ESP32 LittleFS filesystem upload tool

  • Download the jar file from here
  • In your Arduino sketchbook directory, create tools directory if it doesn't exist yet.
  • Copy the tool into tools directory <home_dir>/Arduino/tools/ESP32LittleFS/tool/esp32littlefs.jar
  • Alternatively you can replace the arduino-esp32fs-plugin with this variant, which supports SPIFFS and LittleFS, both
  • Requires mklittlefs executable - download the zipped binary here or from esp-quick-toolchain releases here
  • Copy the binary to packages\esp32\hardware\esp32\<x.x.x>\tools\mklittlefs\ folder
  • Restart Arduino IDE.

Credits and license