Back to Parent

int ledPin = D2;


void setup() {
    // Tell the Argon that we'll use D2 as an output pin.
    pinMode(ledPin, OUTPUT);
}


void loop() {
    // Turn on
    digitalWrite(ledPin, HIGH);   // Turn ON the LED pins
    delay(1000);               // Wait for 1000mS = 1 second
    
    // Turn off
    digitalWrite(ledPin, LOW);   // Turn OFF the LED pins
    delay(1000);               // Wait for 1000mS = 1 second
    // Repeat
}
Click to Expand

Content Rating

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

0