Created
October 11, 2018 20:19
-
-
Save WyriHaximus/50fde6fa074015be5fb4b4f06367063e 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 count = 0; | |
void setup() { | |
pinMode(10, OUTPUT); | |
pinMode(9, OUTPUT); | |
pinMode(8, OUTPUT); | |
pinMode(7, OUTPUT); | |
} | |
void loop() { | |
count++; | |
for (int i = 10; i > 6; i--) { | |
digitalWrite(i, count++ % 2 ? HIGH : LOW); | |
} | |
delay(250); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment