aboutsummaryrefslogtreecommitdiff
path: root/libraries/EEPROM/examples/eeprom_put
diff options
context:
space:
mode:
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,