aboutsummaryrefslogtreecommitdiff
path: root/libraries/EEPROM/examples/eeprom_put
diff options
context:
space:
mode:
authorChris--A <chris@genx.biz>2015-03-24 13:58:01 +1000
committerChris--A <chris@genx.biz>2015-03-24 13:58:01 +1000
commit5da9792cd61b5ba9eed9fb80874edb52081d6232 (patch)
tree13ea73606522e092346c2b9c84020870e8efae72 /libraries/EEPROM/examples/eeprom_put
parent26577474efcb8874dad687467a8ba2f01678ff4c (diff)
Fixed EEPROM examples and added readme
Diffstat (limited to 'libraries/EEPROM/examples/eeprom_put')
-rw-r--r--libraries/EEPROM/examples/eeprom_put/eeprom_put.ino12
1 files changed, 6 insertions, 6 deletions
diff --git a/libraries/EEPROM/examples/eeprom_put/eeprom_put.ino b/libraries/EEPROM/examples/eeprom_put/eeprom_put.ino
index 7575768..e99b4bd 100644
--- a/libraries/EEPROM/examples/eeprom_put/eeprom_put.ino
+++ b/libraries/EEPROM/examples/eeprom_put/eeprom_put.ino
@@ -16,6 +16,12 @@
#include <EEPROM.h>
+struct MyObject{
+ float field1;
+ byte field2;
+ char name[10];
+};
+
void setup(){
Serial.begin(9600);
@@ -31,12 +37,6 @@ void setup(){
/** Put is designed for use with custom structures also. **/
- struct MyObject{
- float field1;
- byte field2;
- char name[10];
- };
-
//Data to store.
MyObject customVar = {
3.14f,