API for the LPD8806 RGB LED Strip Controller.
More...
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 |
( |
int |
bus, |
|
|
int |
csn, |
|
|
uint16_t |
pixelCount |
|
) |
| |
Instantiates an LPD8806 object
- Parameters
-
bus | SPI bus to use |
csn | Chip select pin |
pixelCount | Number of pixels in the strip |
LPD8806 object destructor; basically, it frees the allocated pixel buffer.
void setPixelColor |
( |
uint16_t |
pixelOffset, |
|
|
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b |
|
) |
| |
- Parameters
-
pixelOffset | Pixel offset in the strip of the pixel |
r | Red LED |
g | Green LED |
b | Blue LED |
Writes the data stored in the array of pixels to the chip
uint16_t getStripLength |
( |
void |
| ) |
|
Returns the length of the LED strip
Returns the name of the component
The documentation for this class was generated from the following files: