Tugas Pendahuluan Modul 1
1. Kondisi [kembali]
- Kondisi awal LED mati lalu hidup berkedip dengan delay 300 ms
3. Flowchart [kembali]
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 mati = 0; mati <= 8; mati++)
{
digitalWrite(led[hidup], LOW);
}
delay(300);
for (int hidup = 0; hidup <= 8; hidup++)
{
digitalWrite(led[mati], HIGH);
}
delay(300);
}
5. Video[kembali]
6. Link Download [kembali]
Tidak ada komentar:
Posting Komentar