ESP8266 Support WIKI

User Tools

Site Tools


arduino-docs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
arduino-docs [2015/06/03 18:06]
cimba007 [ESP8266WiFi]
arduino-docs [2015/07/19 01:19] (current)
apedro [EEPROM]
Line 15: Line 15:
 <code c++> <code c++>
 #include <​EEPROM.h>​ #include <​EEPROM.h>​
 +
 void setup() void setup()
 { {
Line 33: Line 34:
 <code c++> <code c++>
 #include <​EEPROMAnything.h>​ #include <​EEPROMAnything.h>​
 +
 struct eepromInfoType struct eepromInfoType
 { {
Line 41: Line 43:
 void setup() void setup()
 { {
-     myStruct.MyUnsigned8BitInt = 0; //assign some value +     myStructOriginal.MyUnsigned8BitInt = 0; //assign some value 
-     ​strcpy( MyCharArray,​ "Less than 25 chars" ); //assign some value+     ​strcpy( ​myStructOriginal.MyCharArray,​ "Less than 25 chars" ); //assign some value
      ​EEPROM_writeAnything( 0, myStructOriginal ); //remember to modify EEPROM_writeAnything by adding ​  ​.commit().      ​EEPROM_writeAnything( 0, myStructOriginal ); //remember to modify EEPROM_writeAnything by adding ​  ​.commit().
      //​Lets read it back      //​Lets read it back
Line 48: Line 50:
 } }
  
-void loop() {//nothing here}+void loop() 
 +{ 
 +//nothing here 
 +}
 </​code>​ </​code>​
  
arduino-docs.1433354816.txt.gz · Last modified: 2015/06/03 18:06 by cimba007