diff --git a/libraries/EEPROM/examples/eeprom_read/eeprom_read.ino b/libraries/EEPROM/examples/eeprom_read/eeprom_read.ino index 88e3488e9..0709b2d4c 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() diff --git a/libraries/LiquidCrystal/examples/Autoscroll/Autoscroll.ino b/libraries/LiquidCrystal/examples/Autoscroll/Autoscroll.ino index 27123ad4c..1127d8f15 100644 --- a/libraries/LiquidCrystal/examples/Autoscroll/Autoscroll.ino +++ b/libraries/LiquidCrystal/examples/Autoscroll/Autoscroll.ino @@ -32,7 +32,8 @@ This example code is in the public domain. - http://www.arduino.cc/en/Tutorial/LiquidCrystal + http://arduino.cc/en/Tutorial/LiquidCrystalAutoscroll + */ // include the library code: diff --git a/libraries/LiquidCrystal/examples/Blink/Blink.ino b/libraries/LiquidCrystal/examples/Blink/Blink.ino index e4104242e..9667b5d6f 100644 --- a/libraries/LiquidCrystal/examples/Blink/Blink.ino +++ b/libraries/LiquidCrystal/examples/Blink/Blink.ino @@ -32,7 +32,7 @@ This example code is in the public domain. - http://www.arduino.cc/en/Tutorial/LiquidCrystal + http://arduino.cc/en/Tutorial/LiquidCrystalBlink */ diff --git a/libraries/LiquidCrystal/examples/Cursor/Cursor.ino b/libraries/LiquidCrystal/examples/Cursor/Cursor.ino index 28e2a6a22..05862a49f 100644 --- a/libraries/LiquidCrystal/examples/Cursor/Cursor.ino +++ b/libraries/LiquidCrystal/examples/Cursor/Cursor.ino @@ -33,7 +33,8 @@ This example code is in the public domain. - http://www.arduino.cc/en/Tutorial/LiquidCrystal + http://arduino.cc/en/Tutorial/LiquidCrystalCursor + */ // include the library code: diff --git a/libraries/LiquidCrystal/examples/Display/Display.ino b/libraries/LiquidCrystal/examples/Display/Display.ino index b000731a4..a85effb44 100644 --- a/libraries/LiquidCrystal/examples/Display/Display.ino +++ b/libraries/LiquidCrystal/examples/Display/Display.ino @@ -33,7 +33,8 @@ This example code is in the public domain. - http://www.arduino.cc/en/Tutorial/LiquidCrystal + http://arduino.cc/en/Tutorial/LiquidCrystalDisplay + */ // include the library code: diff --git a/libraries/LiquidCrystal/examples/Scroll/Scroll.ino b/libraries/LiquidCrystal/examples/Scroll/Scroll.ino index 71e5e8cce..0d6d8dcf8 100644 --- a/libraries/LiquidCrystal/examples/Scroll/Scroll.ino +++ b/libraries/LiquidCrystal/examples/Scroll/Scroll.ino @@ -33,7 +33,8 @@ This example code is in the public domain. - http://www.arduino.cc/en/Tutorial/LiquidCrystal + http://arduino.cc/en/Tutorial/LiquidCrystalScroll + */ // include the library code: diff --git a/libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.ino b/libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.ino index 9727cee03..a6f8f40bc 100644 --- a/libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.ino +++ b/libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.ino @@ -32,7 +32,7 @@ This example code is in the public domain. - http://www.arduino.cc/en/Tutorial/LiquidCrystal + http://arduino.cc/en/Tutorial/LiquidCrystalSerial */ // include the library code: diff --git a/libraries/LiquidCrystal/examples/TextDirection/TextDirection.ino b/libraries/LiquidCrystal/examples/TextDirection/TextDirection.ino index 51bab1fb5..cabd8ea8f 100644 --- a/libraries/LiquidCrystal/examples/TextDirection/TextDirection.ino +++ b/libraries/LiquidCrystal/examples/TextDirection/TextDirection.ino @@ -32,7 +32,7 @@ This example code is in the public domain. - http://www.arduino.cc/en/Tutorial/LiquidCrystal + http://arduino.cc/en/Tutorial/LiquidCrystalTextDirection */ @@ -49,7 +49,6 @@ void setup() { lcd.begin(16, 2); // turn on the cursor: lcd.cursor(); - Serial.begin(9600); } void loop() { diff --git a/libraries/LiquidCrystal/examples/setCursor/setCursor.ino b/libraries/LiquidCrystal/examples/setCursor/setCursor.ino index 3c4edf3c4..e45c49181 100644 --- a/libraries/LiquidCrystal/examples/setCursor/setCursor.ino +++ b/libraries/LiquidCrystal/examples/setCursor/setCursor.ino @@ -32,7 +32,8 @@ This example code is in the public domain. - http://www.arduino.cc/en/Tutorial/LiquidCrystal + http://arduino.cc/en/Tutorial/LiquidCrystalSetCursor + */ // include the library code: diff --git a/libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino b/libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino index 560965d23..69bcc01a1 100644 --- a/libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino +++ b/libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino @@ -23,7 +23,7 @@ SoftwareSerial mySerial(2, 3); // RX, TX void setup() { // Open serial communications and wait for port to open: - Serial.begin57600; + Serial.begin(57600); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only }