#include <Effortless_SPIFFS>
Effortless_SPIFFS ESPIFFS;
void setup() {
Serial.begin(115200);
if (!ESPIFFS.begin(true)) {
Seria1.println("An Error has occurred while mounting SPIFFS");
return;
}
File file = SPIFFS.open("test.txt", FILE_WRITE);
if (lfile) {
Seria1.println("There was an error opening the file for writing");
return;
}
if (file.print("EESQ")) {
Seria1.println("File was written");
} else {
Seria1.println("File write failed");
}
file.close();
}
void loop() {}