Hi,
I have a beginners problem - I have set up my arduino with the EL escudo Dos shield following this guide: https://learn.sparkfun.com/tutorials/el … okup-guide
I also loaded the example code onto my arduino, that is supposed to light up normal EL wires. I am working with chasing El wires though, and the code does not do anything for them (probably not surprising). I can’t find any code example of how to actually address the three different channels that are needed for the chasing EL wire and control their speeds etc.
Does anybody have an idea on how the code would look?
This is the example code that is used for normal EL wire that I have now:
void setup() {
// The EL channels are on pins 2 through 9 on the ATMega328
// Initialize the pins as outputs
pinMode(2, OUTPUT); // channel A
pinMode(3, OUTPUT); // channel B
pinMode(4, OUTPUT); // channel C
pinMode(5, OUTPUT); // channel D
pinMode(6, OUTPUT); // channel E
pinMode(7, OUTPUT); // channel F
pinMode(8, OUTPUT); // channel G
pinMode(9, OUTPUT); // channel H
pinMode(10, OUTPUT);
//Pin 13 is the status LED on both the EL Sequencer and Arduino for use with the EL Escudo Dos.
pinMode(13, OUTPUT);
}
/Main Loop********/
void loop()
{
int x,status;
//Step through all eight EL channels (pins 2 through 9)
for (x=2; x<=9; x++)
{
digitalWrite(x, HIGH); // turn the EL channel on
delay(100); // wait for 1/10 second
digitalWrite(x, LOW); // turn the EL channel off
//digitalWrite(10, status); //Uncomment this line if using the EL Escudo Dos
digitalWrite(13, status); // blink status LEDs
status = !status;
}
}