forked from esp8266/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This formats all the example source files using Arduino style rules.
- Loading branch information
Showing
88 changed files
with
2,783 additions
and
2,854 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
/* | ||
* EEPROM Clear | ||
* | ||
* Sets all of the bytes of the EEPROM to 0. | ||
* This example code is in the public domain. | ||
EEPROM Clear | ||
*/ | ||
Sets all of the bytes of the EEPROM to 0. | ||
This example code is in the public domain. | ||
*/ | ||
|
||
#include <EEPROM.h> | ||
|
||
void setup() | ||
{ | ||
void setup() { | ||
EEPROM.begin(512); | ||
// write a 0 to all 512 bytes of the EEPROM | ||
for (int i = 0; i < 512; i++) | ||
for (int i = 0; i < 512; i++) { | ||
EEPROM.write(i, 0); | ||
} | ||
|
||
// turn the LED on when we're done | ||
pinMode(13, OUTPUT); | ||
digitalWrite(13, HIGH); | ||
EEPROM.end(); | ||
} | ||
|
||
void loop() | ||
{ | ||
void loop() { | ||
} |
Oops, something went wrong.