Ashampoo_Snap_2020.09.02_09h28m02s_008_

LED met for lus

void setup()
{
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
pinMode(6, OUTPUT);
}
void loop ()
{
for(int i=0; i<=1; i++)
{digitalWrite(12, LOW);//rood
delay(1000);
digitalWrite(12, HIGH);
delay(100);}

for(int i=0; i<=20; i++)
{digitalWrite(11, HIGH);//geel
delay(50);
digitalWrite(11, LOW);
delay(50);}

for(int i=0; i<=2; i++)
{digitalWrite(6, HIGH);//blauw
delay(500);
digitalWrite(6, LOW);
delay(500);}

for(int i=0; i<=1; i++)
{digitalWrite(12, HIGH);//rood
delay(1000);
digitalWrite(12, LOW);
delay(100);}

}

Comments are closed.