Skip to main content
Became Hot Network Question
added 2 characters in body
Source Link
Rhino
  • 51
  • 2
  • 4

I have a Question regarding Arduino IDE:

Many old Arduino setup examples states that the Serial.begin() function always should begin with :

Serial.begin(9600); // (or 115200)  

while (!Serial) 
 { 
   ; // Wait for serial to connect 
 }

Now I have read a lot of comments saying that this "Wait-function" is no longer necessary ??

Is this an old routine, that's no longer necessary, or is it still important ???

I have a Question regarding Arduino IDE:

Many old Arduino setup examples states that the Serial.begin() function always should begin with :

Serial.begin(9600); // (or 115200) 
while (!Serial) 
 { 
   ; // Wait for serial to connect 
 }

Now I have read a lot of comments saying that this "Wait-function" is no longer necessary ??

Is this an old routine, that's no longer necessary, or is it still important ???

I have a Question regarding Arduino IDE:

Many old Arduino setup examples states that the Serial.begin() function always should begin with :

Serial.begin(9600); // (or 115200)  

while (!Serial) 
 { 
   ; // Wait for serial to connect 
 }

Now I have read a lot of comments saying that this "Wait-function" is no longer necessary ??

Is this an old routine, that's no longer necessary, or is it still important ???

Formatted code. Removed sign-off.
Source Link
sa_leinad
  • 3.2k
  • 2
  • 24
  • 53

I have a Question regarding Arduino IDE:

Many old Arduino setup examples states that the Serial.begin() function always should begin with :

Serial.begin(9600); // (or 115200) while (!Serial) { ; // Wait for serial to connect }

Serial.begin(9600); // (or 115200) 
while (!Serial) 
 { 
   ; // Wait for serial to connect 
 }

Now I have read a lot of comments saying that this "Wait-function" is no longer necessary ??

Is this an old routine, that's no longer necessary, or is it still important ???

/Regards : Gurra

I have a Question regarding Arduino IDE:

Many old Arduino setup examples states that the Serial.begin() function always should begin with :

Serial.begin(9600); // (or 115200) while (!Serial) { ; // Wait for serial to connect }

Now I have read a lot of comments saying that this "Wait-function" is no longer necessary ??

Is this an old routine, that's no longer necessary, or is it still important ???

/Regards : Gurra

I have a Question regarding Arduino IDE:

Many old Arduino setup examples states that the Serial.begin() function always should begin with :

Serial.begin(9600); // (or 115200) 
while (!Serial) 
 { 
   ; // Wait for serial to connect 
 }

Now I have read a lot of comments saying that this "Wait-function" is no longer necessary ??

Is this an old routine, that's no longer necessary, or is it still important ???

Source Link
Rhino
  • 51
  • 2
  • 4

Arduino-IDE "while (!Serial)"

I have a Question regarding Arduino IDE:

Many old Arduino setup examples states that the Serial.begin() function always should begin with :

Serial.begin(9600); // (or 115200) while (!Serial) { ; // Wait for serial to connect }

Now I have read a lot of comments saying that this "Wait-function" is no longer necessary ??

Is this an old routine, that's no longer necessary, or is it still important ???

/Regards : Gurra