upm  1.2.0
Sensor/Actuator repository for libmraa (v1.6.1)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions
ElDriver Class Reference

API for the EL Driver Module. More...

Detailed Description

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

eldriver.jpg
// The was tested with the El Driver Module
// Instantiate a El Driver on digital pin D2
upm::ElDriver* eldriver = new upm::ElDriver(2);
bool lightState = true;
while (shouldRun)
{
if (lightState)
eldriver->on();
else
eldriver->off();
lightState = !lightState;
sleep(1);
}

Public Member Functions

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

Constructor & Destructor Documentation

ElDriver ( int  pin)

EL Driver constructor

Parameters
pinDigital pin to use
~ElDriver ( )

EL Driver destructor

Member Function Documentation

void on ( )

Turns the EL wire on

void off ( )

Turns the EL wire off


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