Skip to content

Instantly share code, notes, and snippets.

@li2hub
Created July 24, 2018 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save li2hub/2ebd4810df800f7e666186de2840bedc to your computer and use it in GitHub Desktop.
Save li2hub/2ebd4810df800f7e666186de2840bedc to your computer and use it in GitHub Desktop.
int x;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
for (x = 0; x < 10; x++)
{ Serial.println(x);
delay(100);
}
delay(100);
for (x = 10; x > -1; x--)
{ Serial.println(x);
delay(100);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment