//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 3000 milliseconds
delay(3000);
//turns pin off
digitalWrite(ledPin, LOW);
//for 3000 milliseconds
delay(3000);
//repeats loop
}
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. .