Skip to content

Instantly share code, notes, and snippets.

@atanasyanew
Created February 7, 2021 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atanasyanew/abb7ba57f91e86c4dc5532089e5aa698 to your computer and use it in GitHub Desktop.
Save atanasyanew/abb7ba57f91e86c4dc5532089e5aa698 to your computer and use it in GitHub Desktop.
ESP8266 SPIFFS formatter, arduino sketch
#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