1

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 Answers1

0

Seems like you've chosen the ESP32 version of this project, which doesn't run on ESP8266. Try the ESP8266 version instead.

Tarmo
  • 3,728
  • 1
  • 8
  • 25