C++ API for LPD8806.
More...
The FastPixel lpd8806 is an RGB led strip controller.
usleep (1000000);
sensor->show ();
while (!doWork) {
scanner(127, 0, 0, 30);
scanner(0, 0, 127, 15);
usleep (1000000);
}
LPD8806 |
( |
uint16_t |
pixelCount, |
|
|
uint8_t |
csn |
|
) |
| |
Instanciates a LPD8806 object
- Parameters
-
pixelCount | number of pixels in the strip |
csn | chip slect pin |
LPD8806 object destructor, basicaly it close SPI and the GPIO.
void setPixelColor |
( |
uint16_t |
pixelOffset, |
|
|
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b |
|
) |
| |
- Parameters
-
pixelOffset | pixel offset in the strip of pixel |
r | red led |
g | green led |
b | blue led |
Write the data stored in array of pixels to the chip
uint16_t getStripLength |
( |
void |
| ) |
|
Return length of the led strip
Return name of the component
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/upm-doc/src/lpd8806/lpd8806.h
- /var/lib/jenkins/workspace/upm-doc/src/lpd8806/lpd8806.cxx