Back to Parent

//exercise 1: blink on and off every 3 secs

int ledPin = D2;

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

void loop(){
    
    digitalWrite(ledPin, HIGH);
    delay(3000);
    
    digitalWrite(ledPin, LOW);
    delay(3000);
   
}
Click to Expand

Content Rating

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

0