Skip to content

Instantly share code, notes, and snippets.

@yemreeke
Created November 19, 2020 07:30
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 yemreeke/27b0361424358188a095181fb3d051cb to your computer and use it in GitHub Desktop.
Save yemreeke/27b0361424358188a095181fb3d051cb to your computer and use it in GitHub Desktop.
int Ledler[] = {2,3,4,5,6,7};
void setup() {
for(int i=0;i<6;i++){
pinMode(Ledler[i],OUTPUT);
}
}
void loop() {
for(int i=0;i<6;i++){
digitalWrite(Ledler[i],HIGH);
delay(100);
digitalWrite(Ledler[i],LOW);
}
for(int i=4;i>0;i--){
digitalWrite(Ledler[i],HIGH);
delay(100);
digitalWrite(Ledler[i],LOW);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment