Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c70b66f

Browse files
committedJan 22, 2021
supports esp32 littleFS
1 parent 4917b38 commit c70b66f

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed
 

‎lib/framework/ESPFS.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifdef ESP32
2-
#include <SPIFFS.h>
3-
#define ESPFS SPIFFS
2+
// #include <SPIFFS.h>
3+
// #define ESPFS SPIFFS
4+
#include <LittleFS.h>
5+
#define ESPFS LITTLEFS
46
#elif defined(ESP8266)
57
#include <LittleFS.h>
68
#define ESPFS LittleFS

‎mklittlefs.exe

960 KB
Binary file not shown.

‎mklittlefs.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Import("env")
2+
print("Replace MKSPIFFSTOOL with mklittlefs.exe")
3+
env.Replace (MKSPIFFSTOOL = "mklittlefs.exe")

‎platformio.ini

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build_flags=
1414
;-D ENABLE_CORS
1515
-D CORS_ORIGIN=\"http://localhost:3000\"
1616
; Uncomment PROGMEM_WWW to enable the storage of the WWW data in PROGMEM
17-
-D PROGMEM_WWW
17+
; -D PROGMEM_WWW
1818

1919
; ensure transitive dependencies are included for correct platforms only
2020
lib_compat_mode = strict
@@ -29,7 +29,8 @@ framework = arduino
2929
monitor_speed = 115200
3030

3131
extra_scripts =
32-
pre:scripts/build_interface.py
32+
; pre:scripts/build_interface.py
33+
mklittlefs.py
3334

3435
lib_deps =
3536
ArduinoJson@>=6.0.0,<7.0.0
@@ -44,6 +45,7 @@ board_build.filesystem = littlefs
4445

4546
[env:node32s]
4647
; Comment out min_spiffs.csv setting if disabling PROGMEM_WWW with ESP32
47-
board_build.partitions = min_spiffs.csv
48+
; board_build.partitions = min_spiffs.csv
4849
platform = espressif32
4950
board = node32s
51+
lib_deps = LittleFS_esp32

0 commit comments

Comments
 (0)
Please sign in to comment.