Back to Parent

int ledPin = D2;
int ledPin2 = D3;

void setup() {
    
    pinMode(ledPin, OUTPUT);
    pinMode(ledPin2, OUTPUT);
}

void loop() {
    digitalWrite(ledPin, HIGH); // blink the led1 once
    delay(500);
    digitalWrite(ledPin, LOW);
    delay(500);
    digitalWrite(ledPin2, HIGH); // blink the led2 once
    delay(500);
    digitalWrite(ledPin2, LOW);
    delay(500);
}
Click to Expand

Content Rating

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

0