Skip to content

Commit

Permalink
LittleFS, on ESP32, too. see my library and tool plus the core conver…
Browse files Browse the repository at this point in the history
  • Loading branch information
lorol authored and Jurij Retzlaff committed Sep 11, 2022
1 parent b722f09 commit 744aef7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
16 changes: 11 additions & 5 deletions examples/ESP_AsyncFSBrowser/ESP_AsyncFSBrowser.ino
@@ -1,12 +1,18 @@
#define USE_LittleFS // possible only for ESP8266 for now

#include <ArduinoOTA.h>

#ifdef ESP32
#include <FS.h>
#include <SPIFFS.h>
#include <ESPmDNS.h>
#include <WiFi.h>
#include <AsyncTCP.h>
#include <FS.h>
#ifdef USE_LittleFS
#define SPIFFS LITTLEFS
#include <LITTLEFS.h>
#else
#include <SPIFFS.h>
#endif
#include <ESPmDNS.h>
#include <WiFi.h>
#include <AsyncTCP.h>
#elif defined(ESP8266)
#ifdef USE_LittleFS
#include <FS.h>
Expand Down
9 changes: 7 additions & 2 deletions examples/SmartSwitch/SmartSwitch.ino
Expand Up @@ -13,7 +13,7 @@ Multiple clients can be connected at same time, they see each other requests
Use latest ESP core lib (from Github)
*/

#define USE_LittleFS // possible only for ESP8266 for now
#define USE_LittleFS

#define USE_WFM // to use ESPAsyncWiFiManager
//#define DEL_WFM // delete Wifi credentials stored
Expand Down Expand Up @@ -41,7 +41,12 @@ Use latest ESP core lib (from Github)
#include <ArduinoOTA.h>
#ifdef ESP32
#include <FS.h>
#include <SPIFFS.h>
#ifdef USE_LittleFS
#define SPIFFS LITTLEFS
#include <LITTLEFS.h>
#else
#include <SPIFFS.h>
#endif
#include <ESPmDNS.h>
#include <WiFi.h>
#include <AsyncTCP.h>
Expand Down

0 comments on commit 744aef7

Please sign in to comment.