aboutsummaryrefslogtreecommitdiff
path: root/libraries/EEPROM/examples/eeprom_put/eeprom_put.ino
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/EEPROM/examples/eeprom_put/eeprom_put.ino')
-rw-r--r--libraries/EEPROM/examples/eeprom_put/eeprom_put.ino5
1 files changed, 4 insertions, 1 deletions
diff --git a/libraries/EEPROM/examples/eeprom_put/eeprom_put.ino b/libraries/EEPROM/examples/eeprom_put/eeprom_put.ino
index e99b4bd..186cf95 100644
--- a/libraries/EEPROM/examples/eeprom_put/eeprom_put.ino
+++ b/libraries/EEPROM/examples/eeprom_put/eeprom_put.ino
@@ -25,7 +25,10 @@ struct MyObject{
void setup(){
Serial.begin(9600);
-
+ while (!Serial) {
+ ; // wait for serial port to connect. Needed for Leonardo only
+ }
+
float f = 123.456f; //Variable to store in EEPROM.
int eeAddress = 0; //Location we want the data to be put.