No Description

lorol 8e81142b7b Updated readme 5 years ago
examples 4e1979d7a1 Add files via upload 5 years ago
src 489e589838 Follow-up / update 5 years ago
LICENSE fb074d28dd Initial commit 5 years ago
README.md 8e81142b7b Updated readme 5 years ago
library.json 5aebcc0503 added library.json 5 years ago
library.properties 3ee159c21e Add files via upload 5 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 (and in this implementation)

  • LittleFS has folders, you my need to tweak your code to iterate files in folders
  • Root: /someting = something, so attention to /
  • Lower level littlefs library cannot mount on NULL as partition_label name, while SPIFFS can
  • Lower level littlefs library does not need maxOpenFiles parameter
  • Speed (LITTLEFS_Test.ino) 1048576 bytes written in 16238 ms / 1048576 bytes read in 918 ms
  • Speed (SPIFFS_Test.ino) 1048576 bytes written in 65971 ms / 1048576 bytes read in 680 ms

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
  • Requires mklittlefs executable - download the zipped binary from here or esp-quick-toolchain here
  • Copy the binary to packages\esp32\hardware\esp32\<x.x.x>\tools\mklittlefs\ folder
  • Restart Arduino IDE.

Credits and license