Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

millis() issue #3

Open
rei-vilo opened this issue Sep 18, 2019 · 0 comments
Open

millis() issue #3

rei-vilo opened this issue Sep 18, 2019 · 0 comments

Comments

@rei-vilo
Copy link
Member

The basic sketch listed below prints millis() every second. However, output is different.

*** /Users/ReiVilo/Documents/Projets/Energia/BasicLED/BasicPrint/BasicPrint.ino
--- 509
--- 693
--- 693
--- 693
--- 694
--- 694

  • Basic sketch with millis()
void setup()
{
    Serial.begin(115200);
    delay(500);
    Serial.print("*** ");
    Serial.println(__FILE__);
}

void loop()
{
    Serial.print("--- ");
    Serial.println(millis());
    delay(2000);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant