mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +01:00
modified StringSubstring example to add gating on port readiness
This commit is contained in:
parent
b685aef6ec
commit
ae5d5c0c00
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Examples of how to use substring in a String
|
Examples of how to use substring in a String
|
||||||
|
|
||||||
created 27 July 2010
|
created 27 July 2010, modified 1 April 2012
|
||||||
by Tom Igoe
|
by Tom Igoe
|
||||||
|
|
||||||
http://arduino.cc/en/Tutorial/StringSubstring
|
http://arduino.cc/en/Tutorial/StringSubstring
|
||||||
@ -13,6 +13,9 @@
|
|||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
// Wait for port to be opened:
|
||||||
|
while (!Serial)
|
||||||
|
;
|
||||||
Serial.println("\n\nString substring():");
|
Serial.println("\n\nString substring():");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user