diff options
Diffstat (limited to 'libraries/EEPROM/examples')
-rw-r--r-- | libraries/EEPROM/examples/eeprom_read/eeprom_read.ino | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/EEPROM/examples/eeprom_read/eeprom_read.ino b/libraries/EEPROM/examples/eeprom_read/eeprom_read.ino index 88e3488..0709b2d 100644 --- a/libraries/EEPROM/examples/eeprom_read/eeprom_read.ino +++ b/libraries/EEPROM/examples/eeprom_read/eeprom_read.ino @@ -14,7 +14,11 @@ byte value; void setup() { + // initialize serial and wait for port to open: Serial.begin(9600); + while (!Serial) { + ; // wait for serial port to connect. Needed for Leonardo only + } } void loop() |