Created
September 4, 2017 22:23
-
-
Save malceore/9eab4f4be6a305efa2463a2533ca4d75 to your computer and use it in GitHub Desktop.
run this to confiugre globals for real program gist
This file contains hidden or 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 one = 19; | |
| int two = 20; | |
| int three = 21; | |
| int four = 18; | |
| void setup() { | |
| // put your setup code here, to run once: | |
| pinMode(four, OUTPUT); | |
| pinMode(one, OUTPUT); | |
| pinMode(two, OUTPUT); | |
| pinMode(three, OUTPUT); | |
| } | |
| void loop() { | |
| delay(500); // wait for a second | |
| digitalWrite(one, HIGH); | |
| delay(500); | |
| digitalWrite(one, LOW); | |
| delay(500); // wait for a second | |
| digitalWrite(two, HIGH); | |
| delay(500); | |
| digitalWrite(two, LOW); | |
| delay(500); // wait for a second | |
| digitalWrite(three, HIGH); | |
| delay(500); | |
| digitalWrite(three, LOW); | |
| delay(500); | |
| digitalWrite(four, HIGH); | |
| delay(500); | |
| digitalWrite(four, LOW); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment