upm  1.5.0
Sensor/Actuator repository for libmraa (v1.8.0)
Public Member Functions

API for the Grove EL Driver Module. More...

Detailed Description

The Grove EL Driver allows you to easily light up an EL wire with just one single Grove cable.

groveeldriver.jpg
// The was tested with the Grove El Driver Module
// Instantiate a Grove El Driver on digital pin D2
upm::GroveElDriver eldriver(2);
bool lightState = true;
while (shouldRun) {
if (lightState)
eldriver.on();
else
eldriver.off();
lightState = !lightState;
upm_delay(1);
}

Public Member Functions

 GroveElDriver (int pin)
 
 ~GroveElDriver ()
 
void on ()
 
void off ()
 

Constructor & Destructor Documentation

◆ GroveElDriver()

GroveElDriver ( int  pin)

Grove EL Driver constructor

Parameters
pinDigital pin to use

◆ ~GroveElDriver()

Grove EL Driver destructor

Member Function Documentation

◆ on()

void on ( )

Turns the EL wire on

◆ off()

void off ( )

Turns the EL wire off


The documentation for this class was generated from the following files: