I'm working on Arduino IDE to implement LittleFS file system.However I get the error message as "src\LITTLEFS.cpp:17:21: fatal error: vfs_api.h: No such file or directory #include "vfs_api.h" when I try to compile my program.
Code :
#include <Arduino.h> #include "FS.h" #include <LITTLEFS.h> #define FORMAT_LITTLEFS_IF_FAILED true void setup(){ } void loop(){ }
Arduino version : 1.8.13
Board : NodeMCU v3(ESP12-E Module 1.0)
Flash Size : 4MB(1 MB SPIFFS)
1 Answer
Seems like you've chosen the ESP32 version of this project, which doesn't run on ESP8266. Try the ESP8266 version instead.
1ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobW5uZm5%2FdX6OnqqpcGJrg6%2B7w56knK1doba1wMuenaxlnJ6vs63RsmSpqp%2BXuaa5