File tree 3 files changed +4
-4
lines changed
Functions/Communication/Serial
Data Types/String/Functions
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ void setup() {
68
68
//Initialize serial and wait for port to open:
69
69
Serial.begin(9600);
70
70
while (!Serial) {
71
- ; // wait for serial port to connect. Needed for Leonardo only
71
+ ; // wait for serial port to connect. Needed for native USB
72
72
}
73
73
}
74
74
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ void setup() {
56
56
// initialize serial and wait for port to open:
57
57
Serial.begin(9600);
58
58
while (!Serial) {
59
- ; // wait for serial port to connect. Needed for Leonardo only
59
+ ; // wait for serial port to connect. Needed for native USB
60
60
}
61
61
62
62
myString.reserve(26);
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ char myChar;
77
77
78
78
void setup() {
79
79
Serial.begin(9600);
80
- while (!Serial);
80
+ while (!Serial); // wait for serial port to connect. Needed for native USB
81
81
82
82
// put your setup code here, to run once:
83
83
// read back a 2-byte int
@@ -144,7 +144,7 @@ char buffer[30]; // make sure this is large enough for the largest string it
144
144
void setup()
145
145
{
146
146
Serial.begin(9600);
147
- while(!Serial);
147
+ while(!Serial); // wait for serial port to connect. Needed for native USB
148
148
Serial.println("OK");
149
149
}
150
150
You can’t perform that action at this time.
0 commit comments