I'm following the Arduino video from Lynda.com and used the same exact example as the one shown on Lynda.com to display numbers increasing it by 1 unit.
The strange thing is that my result is not the same as the one from Lynda.
int seconds;
void setup()
{
seconds = 0;
Serial.begin(9600);
}
void loop() {
Serial.println(seconds);
delay(1000);
seconds++;
}
Lynda's result dislplays 012345.... but mine is displaying 0012345... (repeating the initial 0).
Can anyone help me understand why this is happening?
I really appreciate your help.