Back to Parent

// 1.1 Modify the program to Blink on and off every 3 seconds.

int ledPin = D3;

void setup() {
  // We want to tell the Argon that we'll use
  // D3 as an output pin.
  pinMode(ledPin, OUTPUT);
}

void loop() {
  // First... On
  digitalWrite(ledPin, HIGH);   // Turn ON the LED pins
  delay(3000);               

  // Now... Off
  digitalWrite(ledPin, LOW);   // Turn OFF the LED pins
  delay(3000);               
  // rinse + repeat

}
Click to Expand

Content Rating

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

0