Back to Parent

// variables 
int ledPin = D2;
// make it run once //
void setup() {
    pinMode(ledPin,OUTPUT); //definte ledPin is output use pinMode //

}

void loop() {
    digitalWrite(ledPin,HIGH);
    delay(100);
    digitalWrite(ledPin,LOW);
    delay(100);
    digitalWrite(ledPin,HIGH);
    delay(100);
    digitalWrite(ledPin,LOW);
    delay(100);
    digitalWrite(ledPin,HIGH);
    delay(100);
    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