Back to Parent

//Declare variable ledPin as an integer
//Set ledPinI to D2 on argon

int ledPin = D2;
//setup is called once every time a program is run 
void setup() {
    
    //tell argon to use D2 as the output pin
    pinMode(ledPin, OUTPUT);

}

void loop() {
    //turns pin on
    digitalWrite(ledPin, HIGH);
    //for 1000 milliseconds
    delay(1000);
    //turns pin off
    digitalWrite(ledPin, LOW);
    //for 1000 milliseconds
    delay(1000);
    //repeats loop

}
Click to Expand

Content Rating

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

0