DAFTAR ISI
1. Kondisi(BACK)
- Kondisi awal LED mati lalu hidup secara bergantian LED 1,2,3,4 selanjutnya 5,6,7,8 secara berulang.
2. Rangkaian Simulasi(BACK)
3. Video Simulasi(BACK)
int led []= {2, 3, 4, 5, 6, 7, 8, 9};
void setup() {
for (int i=0; i<=8; i++)
{
pinMode (led[i], OUTPUT);
}
}
void loop() {
for (int hidup = 0; hidup<=3; hidup++){
digitalWrite(led[hidup], HIGH);
delay(100);
}
delay(100);
for (int mati=0; mati<=3; mati++){
digitalWrite(led[mati], LOW);
delay(100);
}
delay(100);
for (int hidup=4; hidup<=8; hidup++){
digitalWrite(led[hidup], HIGH);
delay(100);
}
delay(100);
for(int mati=4; mati<=8; mati++){
digitalWrite(led[mati], LOW);
delay(100);
}
delay(100);
}
4. Listing Program(BACK)
int led []= {2, 3, 4, 5, 6, 7, 8, 9};
void setup() {
for (int i=0; i<=8; i++)
{
pinMode (led[i], OUTPUT);
}
}
void loop() {
for (int hidup = 0; hidup<=3; hidup++){
digitalWrite(led[hidup], HIGH);
delay(100);
}
delay(100);
for (int mati=0; mati<=3; mati++){
digitalWrite(led[mati], LOW);
delay(100);
}
delay(100);
for (int hidup=4; hidup<=8; hidup++){
digitalWrite(led[hidup], HIGH);
delay(100);
}
delay(100);
for(int mati=4; mati<=8; mati++){
digitalWrite(led[mati], LOW);
delay(100);
}
delay(100);
}
5. Flowchart(BACK)
6. Link Download(BACK)
Rangkaian simulasi Click Here
Video Simulasi Click Here
Listing Program Click Here
Flowchart Click Here
HTML Click Here
Tidak ada komentar:
Posting Komentar