Skip to content

Commit 235de7f

Browse files
authored
Create code.ino
1 parent c87a6ae commit 235de7f

File tree

1 file changed

+19
-0
lines changed
  • Project 5-LED Dot Matrix Cascade

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
void setup() {
2+
// put your setup code here, to run once:
3+
//Led berjalan
4+
for (int i=4;i<=13;i++) {
5+
pinMode (i, OUTPUT);
6+
//set output awal
7+
digitalWrite(i,LOW);
8+
}
9+
}
10+
11+
void loop() {
12+
// put your main code here, to run repeatedl y:
13+
// nyalakan LED satu demi satu
14+
for(int i=4;i<=13;i++) {
15+
digitalWrite(i,HIGH);
16+
delay (500);
17+
digitalWrite(i,LOW);
18+
}
19+
}

0 commit comments

Comments
 (0)