Skip to content

Commit 9eaea42

Browse files
committed
Modified reference to Leonardo only in the examples
According to #3786 removed the reference to Leonardo only in while(!Serial) of the examples. Changed in in "wait for serial port to connect. Needed for native USB port only"
1 parent 4fa8750 commit 9eaea42

File tree

57 files changed

+60
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+60
-60
lines changed

build/shared/examples/04.Communication/ASCIITable/ASCIITable.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void setup() {
2323
//Initialize serial and wait for port to open:
2424
Serial.begin(9600);
2525
while (!Serial) {
26-
; // wait for serial port to connect. Needed for Leonardo only
26+
; // wait for serial port to connect. Needed for native USB port only
2727
}
2828

2929
// prints title with ending line break

build/shared/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void setup() {
3333
// start serial port at 9600 bps:
3434
Serial.begin(9600);
3535
while (!Serial) {
36-
; // wait for serial port to connect. Needed for Leonardo only
36+
; // wait for serial port to connect. Needed for native USB port only
3737
}
3838

3939
pinMode(2, INPUT); // digital sensor is on digital pin 2

build/shared/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void setup() {
3737
// start serial port at 9600 bps and wait for port to open:
3838
Serial.begin(9600);
3939
while (!Serial) {
40-
; // wait for serial port to connect. Needed for Leonardo only
40+
; // wait for serial port to connect. Needed for native USB port only
4141
}
4242

4343

build/shared/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void setup() {
1515
// Open serial communications and wait for port to open:
1616
Serial.begin(9600);
1717
while (!Serial) {
18-
; // wait for serial port to connect. Needed for Leonardo only
18+
; // wait for serial port to connect. Needed for native USB port only
1919
}
2020

2121
// send an intro:

build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void setup() {
2020
// initialize serial and wait for port to open:
2121
Serial.begin(9600);
2222
while (!Serial) {
23-
; // wait for serial port to connect. Needed for Leonardo only
23+
; // wait for serial port to connect. Needed for native USB port only
2424
}
2525

2626
stringOne = String("stringThree = ");

build/shared/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void setup() {
1818
// Open serial communications and wait for port to open:
1919
Serial.begin(9600);
2020
while (!Serial) {
21-
; // wait for serial port to connect. Needed for Leonardo only
21+
; // wait for serial port to connect. Needed for native USB port only
2222
}
2323

2424
stringOne = String("Sensor ");

build/shared/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
// Open serial communications and wait for port to open:
1717
Serial.begin(9600);
1818
while (!Serial) {
19-
; // wait for serial port to connect. Needed for Leonardo only
19+
; // wait for serial port to connect. Needed for native USB port only
2020
}
2121

2222
// send an intro:

build/shared/examples/08.Strings/StringCharacters/StringCharacters.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
// Open serial communications and wait for port to open:
1717
Serial.begin(9600);
1818
while (!Serial) {
19-
; // wait for serial port to connect. Needed for Leonardo only
19+
; // wait for serial port to connect. Needed for native USB port only
2020
}
2121

2222
Serial.println("\n\nString charAt() and setCharAt():");

build/shared/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void setup() {
1818
// Open serial communications and wait for port to open:
1919
Serial.begin(9600);
2020
while (!Serial) {
21-
; // wait for serial port to connect. Needed for Leonardo only
21+
; // wait for serial port to connect. Needed for native USB port only
2222
}
2323

2424

build/shared/examples/08.Strings/StringConstructors/StringConstructors.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
// Open serial communications and wait for port to open:
1717
Serial.begin(9600);
1818
while (!Serial) {
19-
; // wait for serial port to connect. Needed for Leonardo only
19+
; // wait for serial port to connect. Needed for native USB port only
2020
}
2121

2222
// send an intro:

build/shared/examples/08.Strings/StringIndexOf/StringIndexOf.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
// Open serial communications and wait for port to open:
1717
Serial.begin(9600);
1818
while (!Serial) {
19-
; // wait for serial port to connect. Needed for Leonardo only
19+
; // wait for serial port to connect. Needed for native USB port only
2020
}
2121

2222
// send an intro:

build/shared/examples/08.Strings/StringLength/StringLength.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void setup() {
1919
// Open serial communications and wait for port to open:
2020
Serial.begin(9600);
2121
while (!Serial) {
22-
; // wait for serial port to connect. Needed for Leonardo only
22+
; // wait for serial port to connect. Needed for native USB port only
2323
}
2424

2525
// send an intro:

build/shared/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
// Open serial communications and wait for port to open:
1717
Serial.begin(9600);
1818
while (!Serial) {
19-
; // wait for serial port to connect. Needed for Leonardo only
19+
; // wait for serial port to connect. Needed for native USB port only
2020
}
2121

2222
// send an intro:

build/shared/examples/08.Strings/StringReplace/StringReplace.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
// Open serial communications and wait for port to open:
1717
Serial.begin(9600);
1818
while (!Serial) {
19-
; // wait for serial port to connect. Needed for Leonardo only
19+
; // wait for serial port to connect. Needed for native USB port only
2020
}
2121

2222
// send an intro:

build/shared/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
// Open serial communications and wait for port to open:
1717
Serial.begin(9600);
1818
while (!Serial) {
19-
; // wait for serial port to connect. Needed for Leonardo only
19+
; // wait for serial port to connect. Needed for native USB port only
2020
}
2121

2222
// send an intro:

build/shared/examples/08.Strings/StringSubstring/StringSubstring.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
// Open serial communications and wait for port to open:
1717
Serial.begin(9600);
1818
while (!Serial) {
19-
; // wait for serial port to connect. Needed for Leonardo only
19+
; // wait for serial port to connect. Needed for native USB port only
2020
}
2121

2222
// send an intro:

build/shared/examples/08.Strings/StringToInt/StringToInt.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void setup() {
1919
// Open serial communications and wait for port to open:
2020
Serial.begin(9600);
2121
while (!Serial) {
22-
; // wait for serial port to connect. Needed for Leonardo only
22+
; // wait for serial port to connect. Needed for native USB port only
2323
}
2424

2525
// send an intro:

hardware/arduino/avr/libraries/EEPROM/examples/eeprom_crc/eeprom_crc.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void setup() {
1515
//Start serial
1616
Serial.begin(9600);
1717
while (!Serial) {
18-
; // wait for serial port to connect. Needed for Leonardo only
18+
; // wait for serial port to connect. Needed for native USB port only
1919
}
2020

2121
//Print length of data to run CRC on.
@@ -49,4 +49,4 @@ unsigned long eeprom_crc(void) {
4949
crc = ~crc;
5050
}
5151
return crc;
52-
}
52+
}

hardware/arduino/avr/libraries/EEPROM/examples/eeprom_get/eeprom_get.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void setup() {
2424

2525
Serial.begin(9600);
2626
while (!Serial) {
27-
; // wait for serial port to connect. Needed for Leonardo only
27+
; // wait for serial port to connect. Needed for native USB port only
2828
}
2929
Serial.print("Read float from EEPROM: ");
3030

@@ -65,4 +65,4 @@ void secondTest() {
6565

6666
void loop() {
6767
/* Empty loop */
68-
}
68+
}

hardware/arduino/avr/libraries/EEPROM/examples/eeprom_put/eeprom_put.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void setup() {
2626

2727
Serial.begin(9600);
2828
while (!Serial) {
29-
; // wait for serial port to connect. Needed for Leonardo only
29+
; // wait for serial port to connect. Needed for native USB port only
3030
}
3131

3232
float f = 123.456f; //Variable to store in EEPROM.
@@ -55,4 +55,4 @@ void setup() {
5555

5656
void loop() {
5757
/* Empty loop */
58-
}
58+
}

hardware/arduino/avr/libraries/EEPROM/examples/eeprom_read/eeprom_read.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
// initialize serial and wait for port to open:
1717
Serial.begin(9600);
1818
while (!Serial) {
19-
; // wait for serial port to connect. Needed for Leonardo only
19+
; // wait for serial port to connect. Needed for native USB port only
2020
}
2121
}
2222

hardware/arduino/avr/libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void setup() {
3333
// Open serial communications and wait for port to open:
3434
Serial.begin(57600);
3535
while (!Serial) {
36-
; // wait for serial port to connect. Needed for Leonardo only
36+
; // wait for serial port to connect. Needed for native USB port only
3737
}
3838

3939

hardware/arduino/avr/libraries/SoftwareSerial/examples/TwoPortReceive/TwoPortReceive.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void setup() {
4646
// Open serial communications and wait for port to open:
4747
Serial.begin(9600);
4848
while (!Serial) {
49-
; // wait for serial port to connect. Needed for Leonardo only
49+
; // wait for serial port to connect. Needed for native USB port only
5050
}
5151

5252

libraries/Esplora/examples/Experts/EsploraRemote/EsploraRemote.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
#include <Esplora.h>
3333

3434
void setup() {
35-
while (!Serial); // needed for Leonardo-based board like Esplora
3635
Serial.begin(9600);
36+
while (!Serial); // needed for native USB port only
3737
}
3838

3939
void loop() {

libraries/Ethernet/examples/AdvancedChatServer/AdvancedChatServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void setup() {
4848
// Open serial communications and wait for port to open:
4949
Serial.begin(9600);
5050
while (!Serial) {
51-
; // wait for serial port to connect. Needed for Leonardo only
51+
; // wait for serial port to connect. Needed for native USB port only
5252
}
5353

5454

libraries/Ethernet/examples/ChatServer/ChatServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void setup() {
4444
// Open serial communications and wait for port to open:
4545
Serial.begin(9600);
4646
while (!Serial) {
47-
; // wait for serial port to connect. Needed for Leonardo only
47+
; // wait for serial port to connect. Needed for native USB port only
4848
}
4949

5050

libraries/Ethernet/examples/DhcpAddressPrinter/DhcpAddressPrinter.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void setup() {
3535
Serial.begin(9600);
3636
// this check is only needed on the Leonardo:
3737
while (!Serial) {
38-
; // wait for serial port to connect. Needed for Leonardo only
38+
; // wait for serial port to connect. Needed for native USB port only
3939
}
4040

4141
// start the Ethernet connection:

libraries/Ethernet/examples/DhcpChatServer/DhcpChatServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void setup() {
4343
Serial.begin(9600);
4444
// this check is only needed on the Leonardo:
4545
while (!Serial) {
46-
; // wait for serial port to connect. Needed for Leonardo only
46+
; // wait for serial port to connect. Needed for native USB port only
4747
}
4848

4949

libraries/Ethernet/examples/TelnetClient/TelnetClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void setup() {
4343
// Open serial communications and wait for port to open:
4444
Serial.begin(9600);
4545
while (!Serial) {
46-
; // wait for serial port to connect. Needed for Leonardo only
46+
; // wait for serial port to connect. Needed for native USB port only
4747
}
4848

4949

libraries/Ethernet/examples/UdpNtpClient/UdpNtpClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void setup() {
4343
// Open serial communications and wait for port to open:
4444
Serial.begin(9600);
4545
while (!Serial) {
46-
; // wait for serial port to connect. Needed for Leonardo only
46+
; // wait for serial port to connect. Needed for native USB port only
4747
}
4848

4949

libraries/Ethernet/examples/WebClient/WebClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void setup() {
3737
// Open serial communications and wait for port to open:
3838
Serial.begin(9600);
3939
while (!Serial) {
40-
; // wait for serial port to connect. Needed for Leonardo only
40+
; // wait for serial port to connect. Needed for native USB port only
4141
}
4242

4343
// start the Ethernet connection:

libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151
// start serial port:
5252
Serial.begin(9600);
5353
while (!Serial) {
54-
; // wait for serial port to connect. Needed for Leonardo only
54+
; // wait for serial port to connect. Needed for native USB port only
5555
}
5656

5757
// give the ethernet module time to boot up:

libraries/Ethernet/examples/WebServer/WebServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void setup() {
3636
// Open serial communications and wait for port to open:
3737
Serial.begin(9600);
3838
while (!Serial) {
39-
; // wait for serial port to connect. Needed for Leonardo only
39+
; // wait for serial port to connect. Needed for native USB port only
4040
}
4141

4242

libraries/GSM/examples/GsmWebClient/GsmWebClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void setup() {
4141
// initialize serial communications and wait for port to open:
4242
Serial.begin(9600);
4343
while (!Serial) {
44-
; // wait for serial port to connect. Needed for Leonardo only
44+
; // wait for serial port to connect. Needed for native USB port only
4545
}
4646

4747
Serial.println("Starting Arduino web client.");

libraries/GSM/examples/GsmWebServer/GsmWebServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void setup() {
3636
// initialize serial communications and wait for port to open:
3737
Serial.begin(9600);
3838
while (!Serial) {
39-
; // wait for serial port to connect. Needed for Leonardo only
39+
; // wait for serial port to connect. Needed for native USB port only
4040
}
4141

4242
// connection state

libraries/GSM/examples/MakeVoiceCall/MakeVoiceCall.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void setup() {
3737
// initialize serial communications and wait for port to open:
3838
Serial.begin(9600);
3939
while (!Serial) {
40-
; // wait for serial port to connect. Needed for Leonardo only
40+
; // wait for serial port to connect. Needed for native USB port only
4141
}
4242

4343
Serial.println("Make Voice Call");

libraries/GSM/examples/ReceiveSMS/ReceiveSMS.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void setup() {
3434
// initialize serial communications and wait for port to open:
3535
Serial.begin(9600);
3636
while (!Serial) {
37-
; // wait for serial port to connect. Needed for Leonardo only
37+
; // wait for serial port to connect. Needed for native USB port only
3838
}
3939

4040
Serial.println("SMS Messages Receiver");

libraries/GSM/examples/ReceiveVoiceCall/ReceiveVoiceCall.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void setup() {
3838
// initialize serial communications and wait for port to open:
3939
Serial.begin(9600);
4040
while (!Serial) {
41-
; // wait for serial port to connect. Needed for Leonardo only
41+
; // wait for serial port to connect. Needed for native USB port only
4242
}
4343

4444
Serial.println("Receive Voice Call");

libraries/GSM/examples/SendSMS/SendSMS.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void setup() {
3434
// initialize serial communications and wait for port to open:
3535
Serial.begin(9600);
3636
while (!Serial) {
37-
; // wait for serial port to connect. Needed for Leonardo only
37+
; // wait for serial port to connect. Needed for native USB port only
3838
}
3939

4040
Serial.println("SMS Messages Sender");

libraries/SD/examples/CardInfo/CardInfo.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void setup() {
3838
// Open serial communications and wait for port to open:
3939
Serial.begin(9600);
4040
while (!Serial) {
41-
; // wait for serial port to connect. Needed for Leonardo only
41+
; // wait for serial port to connect. Needed for native USB port only
4242
}
4343

4444

libraries/SD/examples/Datalogger/Datalogger.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void setup() {
2929
// Open serial communications and wait for port to open:
3030
Serial.begin(9600);
3131
while (!Serial) {
32-
; // wait for serial port to connect. Needed for Leonardo only
32+
; // wait for serial port to connect. Needed for native USB port only
3333
}
3434

3535

libraries/SD/examples/DumpFile/DumpFile.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void setup() {
2929
// Open serial communications and wait for port to open:
3030
Serial.begin(9600);
3131
while (!Serial) {
32-
; // wait for serial port to connect. Needed for Leonardo only
32+
; // wait for serial port to connect. Needed for native USB port only
3333
}
3434

3535

0 commit comments

Comments
 (0)