upm  0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
Public Member Functions | List of all members

API for the LPD8806 RGB LED Strip Controller. More...

Detailed Description

FastPixel* LPD8806 is an RGB LED strip controller.

lpd8806.jpg

Public Member Functions

synchronized void delete ()
 
 LPD8806 (int pixelCount, short csn)
 
void setPixelColor (int pixelOffset, short r, short g, short b)
 
void show ()
 
int getStripLength ()
 
String name ()
 

Constructor & Destructor Documentation

LPD8806 ( int  pixelCount,
short  csn 
)

Instantiates an LPD8806 object

Parameters
pixelCountNumber of pixels in the strip
csnChip select pin

Member Function Documentation

String name ( )

Returns the name of the component

void setPixelColor ( int  pixelOffset,
short  r,
short  g,
short  b 
)
Parameters
pixelOffsetPixel offset in the strip of the pixel
rRed LED
gGreen LED
bBlue LED

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