Skip to content

Commit

Permalink
Update and rename .gitattributes to led.uno
Browse files Browse the repository at this point in the history
  • Loading branch information
KaanYargc authored Sep 28, 2022
1 parent 9f6d220 commit d69dfc4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

26 changes: 26 additions & 0 deletions led.uno
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
void setup() {
for(int i=0;i<9;i++){
pinMode(i,OUTPUT);
}
}

int sayac=0;
int yon=1;
void loop() {
for(int i=0;i<9;i++) {
digitalWrite(i,LOW);
}
digitalWrite(sayac,HIGH);
if(yon==1)sayac++;
if(yon==2)sayac--;

if(sayac>9){
sayac=9;
yon=2;
}
if(sayac<1){
sayac=2;
yon=1;
}
delay(60);
}

0 comments on commit d69dfc4

Please sign in to comment.