Last updated
/************************* 2014 Seeedstudio **************************
* File Name : GroveELDriverDemoCode.ino
* Author : Seeedteam
* Version : V1.0
* Date : 11/12/2014
* Description : Demo code for Grove - EL Driver
*************************************************************************/
#define ELPin 2 //connect EL Driver to digital pin2
void setup() {
// initialize the digital pin2 as an output.
pinMode(ELPin, OUTPUT);
}
void loop() {
digitalWrite(ELPin, HIGH); // set the EL Wire on
delay(500); // for 500ms
digitalWrite(ELPin, LOW); // set the EL Wire off
delay(500);
}