Created
February 11, 2018 17:57
-
-
Save HectorTorres/64aa2ad8700f09719dd14cb6a3546b41 to your computer and use it in GitHub Desktop.
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
/* | |
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