Back to Parent

//Exercise 1-2

int led = D2;

void setup() {
    pinMode (led, OUTPUT);
}

void loop() {
    
    for(int i = 0; i <= 4; i++){
        if (i <= 4){
            digitalWrite(led, HIGH);
            delay(500);
            
            digitalWrite(led, LOW);
            delay(500);
        }
    }
    digitalWrite(led, LOW);
    delay(2500);
}
Click to Expand

Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0