Nincs leírás

lorol 489e589838 Follow-up / update 4 éve
examples 4e1979d7a1 Add files via upload 4 éve
src 489e589838 Follow-up / update 4 éve
LICENSE fb074d28dd Initial commit 4 éve
README.md 489e589838 Follow-up / update 4 éve
library.json 5aebcc0503 added library.json 4 éve
library.properties 3ee159c21e Add files via upload 4 éve

README.md

LITTLEFS

LittleFS library for arduino-esp32

Warning: Depends on ESP-IDF, esp32 core and esp_littlefs versions

  • Tested on master esp32-core #git b92c58d and on core release 1.0.4
  • For esp32-core, newer than release 1.0.4 (IDF v3.3 or later) you can comment this line of esp_littlefs.c to use the vfs_littlefs_utime feature:

    #define CONFIG_LITTLEFS_FOR_IDF_3_2 
    

Installation

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

Usage

  • In your existing code, replace 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 tool jar from here
  • In your Arduino sketchbook directory, create tools directory if it doesn't exist yet.
  • Copy the tool into tools directory (the path should be <home_dir>/Arduino/tools/ESP32LittleFS/tool/esp32littlefs.jar).
  • You need the mklittlefs tool Download the release and copy it to packages\esp32\tools\mkspiffs<mklittlefs rev. x.x.x>\ or on checkout (dev) environment to: packages\esp32\hardware\esp32<release>\tools\mklittlefs\
  • Restart Arduino IDE.

Credits and license

To Do

  • Supporting smarter different IDF versions