// 1.2 Change the program to blink on and off 5 times then stop for 3 seconds. Each blink should be 0.5s
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() {
for (int i=0; i<5; i++) {
digitalWrite(ledPin, HIGH); // Turn ON the LED pins
delay(500);
// Now... Off
digitalWrite(ledPin, LOW); // Turn OFF the LED pins
delay(500);
}
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. .