Go Down

Topic: endless loop in Leonardo (Read 183 times) previous topic - next topic

witbank

Hi to all
I have this problem with Leonardo. Code works fine on uno.

void setup(){

  Serial.begin(9600);
  while(!Serial){
  }
}


This is a simple code but my Leonardo stay inside the while(!Serial) loop. I even added Serial.begin after while loop but still. It never go to void loop()

Today I know more than Yesterday!

knut_ny

try change to  :  !Serial()
Ny

witbank

For fun I did that but I gave me a error.
I removed the while loop and then nothing happens.
Is there no one with arduino Leonardo that can help
Today I know more than Yesterday!

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy