mirror of
https://github.com/KevinMidboe/Arduino.git
synced 2026-09-24 00:22:19 +00:00
Init commit with many years of arduino sketches and projects. I dont know if the esp8266 includes much, but there are also libraries. I hope they dont have crazy automatic versioning through the Arduino IDE.
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
# RESET
|
||||
|
||||
## Method 1
|
||||
|
||||
Open the Reset_Sketch.ino and upload with the correct settings.
|
||||
|
||||
## Method 2
|
||||
|
||||
Flash one of the `reset_` files.
|
||||
|
||||
## Method 3
|
||||
|
||||
Flash the `blank_1MB.bin` to 0x000000 for 1MB modules.
|
||||
Flash it to 0x000000, 0x100000, 0x200000 and 0x300000 for 4MB modules.
|
||||
@@ -0,0 +1,47 @@
|
||||
#include <EEPROM.h>
|
||||
#include <FS.h>
|
||||
|
||||
/*
|
||||
Upload this sketch to your ESP8266 to erase
|
||||
- all files in the SPIFFS,
|
||||
- all data in the EEPROM
|
||||
- WiFi credentials (SSID, password)
|
||||
|
||||
Also overwrites the previous program with this one (obviously).
|
||||
*/
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
|
||||
Serial.println();
|
||||
Serial.println("STARTING...");
|
||||
|
||||
EEPROM.begin(4096);
|
||||
Serial.println("EEPROM initialized");
|
||||
|
||||
for (int i = 0; i < 4096; ++i){
|
||||
EEPROM.write(i,0x00);
|
||||
}
|
||||
|
||||
Serial.println("EEPROM cleaned");
|
||||
|
||||
SPIFFS.begin();
|
||||
Serial.println("SPIFFS initialized");
|
||||
|
||||
SPIFFS.format();
|
||||
Serial.println("SPIFFS cleaned");
|
||||
|
||||
ESP.eraseConfig();
|
||||
|
||||
Serial.println("WiFi credentials erased");
|
||||
|
||||
Serial.println("DONE!");
|
||||
|
||||
delay(10000);
|
||||
|
||||
ESP.reset();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user