Back to Parent

int ledPinR = D2;
int ledPinB = D3;

void setup() {
    pinMode(ledPinR, OUTPUT);
    pinMode(ledPinB, OUTPUT);
}

void loop() {
    digitalWrite(ledPinR, HIGH);
    digitalWrite(ledPinB, LOW);
    delay(1000);
    
    digitalWrite(ledPinR, LOW);
    digitalWrite(ledPinB, HIGH);
    delay(1000);
}
Click to Expand

Content Rating

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

0