Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created February 11, 2018 17:57
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 HectorTorres/64aa2ad8700f09719dd14cb6a3546b41 to your computer and use it in GitHub Desktop.
Save HectorTorres/64aa2ad8700f09719dd14cb6a3546b41 to your computer and use it in GitHub Desktop.
/*
EEPROM CLEAR
Cambia todos los bytes de EEPROM a 0
*/
#include <EEPROM.h>
void setup()
{
for (int E = 0; E < EEPROM.length(); E++)
{
EEPROM.write(E, 0); // Itera por toda la EEPROM y reemplaza cualquier valor que esté en algún byte por cero
}
}
void loop()
{
// Loop vacío
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment