Created
May 15, 2017 09:59
-
-
Save edwardleoni/943b92eb5a3a240c547ff963d6ba0065 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int ledPin1 = 0; | |
int ledPin2 = 3; | |
int ledPin3 = 5; | |
void setup() { | |
pinMode(ledPin1, OUTPUT); | |
pinMode(ledPin2, OUTPUT); | |
pinMode(ledPin3, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(ledPin1, HIGH); | |
delay(500); | |
digitalWrite(ledPin2, HIGH); | |
delay(500); | |
digitalWrite(ledPin3, HIGH); | |
delay(500); | |
digitalWrite(ledPin1, LOW); | |
delay(500); | |
digitalWrite(ledPin2, LOW); | |
delay(500); | |
digitalWrite(ledPin3, LOW); | |
delay(500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment