Created
February 18, 2014 04:36
-
-
Save imrehg/9064700 to your computer and use it in GitHub Desktop.
Galloping horse neon light driver
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
// Galloping horse display | |
// Instructables Build Night with Cool Neon | |
const int p[] = {13, 12}; // List of pins with connected EL wires | |
const int pn = 2; // number of connected wires | |
const int delay = 400; // delay between display updates | |
void setup() { | |
delay(200); | |
for( int i = 0 ; i < pn ; i++ ) { // declare all the Cool Neon channels as outputs | |
pinMode(p[i], OUTPUT); | |
digitalWrite(p[i], HIGH); | |
} | |
} | |
void loop() { | |
digitalWrite(p[0], HIGH); | |
digitalWrite(p[1], LOW); | |
delay(delay); | |
digitalWrite(p[0], LOW); | |
digitalWrite(p[1], HIGH); | |
delay(delay); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment