Created
February 7, 2021 17:01
-
-
Save atanasyanew/abb7ba57f91e86c4dc5532089e5aa698 to your computer and use it in GitHub Desktop.
ESP8266 SPIFFS formatter, arduino sketch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <FS.h> | |
void setup() { | |
Serial.begin(9600); | |
if(SPIFFS.begin()) | |
{ | |
Serial.println("Mounted!"); | |
} | |
else | |
{ | |
Serial.println("Not mounted!"); | |
} | |
} | |
void loop() { | |
if( SPIFFS.format() ) | |
{ | |
Serial.println("Formatted!"); | |
} | |
else | |
{ | |
Serial.println("Format failed!"); | |
} | |
while(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment