int led1 = D2;
void setup() {
//We want to tell the Argon that we'll use
//D2 as an output pin.
pinMode(led1, OUTPUT);
}
void loop() {
//First... On
digitalWrite(led1, HIGH); //Turn ON the LED pins
delay (500); //Wait for 1000mS = 1 second
digitalWrite(led1, LOW);
delay (500);
digitalWrite(led1, HIGH); //Turn ON the LED pins
delay (500); //Wait for 1000mS = 1 second
digitalWrite(led1, LOW);
delay (500);
digitalWrite(led1, HIGH); //Turn ON the LED pins
delay (500); //Wait for 1000mS = 1 second
digitalWrite(led1, LOW);
delay (500);
digitalWrite(led1, HIGH); //Turn ON the LED pins
delay (500); //Wait for 1000mS = 1 second
digitalWrite(led1, LOW);
delay (500);
digitalWrite(led1, HIGH); //Turn ON the LED pins
delay (500); //Wait for 1000mS = 1 second
digitalWrite(led1, 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!
You must login before you can post a comment. .