Back to Parent

int led1Pin = D2;
int led2Pin = D10;

void setup() {
    pinMode(led1Pin, OUTPUT);
    pinMode(led2Pin, OUTPUT);
    
}

void loop() {
        digitalWrite(led1Pin, LOW);
        digitalWrite(led2Pin, HIGH);
        delay(500);
        digitalWrite(led1Pin, LOW);
        digitalWrite(led2Pin, HIGH);
        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