upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
API for the LPD8806 RGB LED Strip Controller. More...
FastPixel* LPD8806 is an RGB LED strip controller.
Public Member Functions | |
LPD8806 (int bus, int csn, uint16_t pixelCount) | |
~LPD8806 () | |
void | setPixelColor (uint16_t pixelOffset, uint8_t r, uint8_t g, uint8_t b) |
void | show (void) |
uint16_t | getStripLength (void) |
std::string | name () |
LPD8806 | ( | int | bus, |
int | csn, | ||
uint16_t | pixelCount | ||
) |
Instantiates an LPD8806 object
bus | SPI bus to use |
csn | Chip select pin |
pixelCount | Number of pixels in the strip |
void setPixelColor | ( | uint16_t | pixelOffset, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) |
pixelOffset | Pixel offset in the strip of the pixel |
r | Red LED |
g | Green LED |
b | Blue LED |
void show | ( | void | ) |
Writes the data stored in the array of pixels to the chip
uint16_t getStripLength | ( | void | ) |
Returns the length of the LED strip
|
inline |
Returns the name of the component