Skip to content

Instantly share code, notes, and snippets.

@imrehg
Created February 18, 2014 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imrehg/9064700 to your computer and use it in GitHub Desktop.
Save imrehg/9064700 to your computer and use it in GitHub Desktop.
Galloping horse neon light driver
// 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