You are on page 1of 1

void setup() {

//the LED is conected to pin 13 of Arduino

pinMode(13,OUTPUT);

void loop() {

//the LED blinks quickly 5 times for one second

for(int n=1; n<6; n++){

digitalWrite(13,HIGH);

delay(500);

digitalWrite(13,LOW);

delay(500);

//the LED blinks slowly 5 times for four seconds

for(int n=1; n<6; n++){

digitalWrite(13,HIGH);

delay(2000);

digitalWrite(13,LOW);

delay(2000);

You might also like