Serial.print skipped in void setup()

A shrunk down Leonardo-compatible board, thumb drive sized with native USB support. [Product info]
shackers
Posts:4
Joined:Fri Jul 13, 2012 8:26 am
Serial.print skipped in void setup()

Post by shackers » Sun Jul 15, 2012 6:10 am

Try running this on a Leostick. the variable 'i' IS updated during setup, but the "Hello World" serial print ISN'T executed - or at least, it doesn't appear in the serial monitor window..

But it works fine on a Uno! Am I missing something here?
Does the Leostick set the serial port up differently? If so, is there a work around?

int i=0;
void setup()
{
Serial.begin(57600);
i = 1;
Serial.println("Hello world!");
}

void loop()
{
Serial.print(i);
Serial.println(" Goodbye world!");
delay(1000);
}

Post Reply