Driver for chained APA102 RGB LEDs. More...
Driver for chained APA102 RGB LEDs.
Files | |
file | apa102_params.h |
APA102 board specific configuration. | |
file | apa102.h |
Interface for controlling APA102 LEDs. | |
Data Structures | |
struct | apa102_params_t |
Configuration parameters for (chained) APA102 LEDs. More... | |
Typedefs | |
typedef apa102_params_t | apa102_t |
Device descriptor definition for APA102 LEDs. | |
Functions | |
void | apa102_init (apa102_t *dev, const apa102_params_t *params) |
Initialize (chained) APA102 LEDs. | |
void | apa102_load_rgba (const apa102_t *dev, const color_rgba_t vals[]) |
Apply the given color values to the connected LED(s) | |
typedef apa102_params_t apa102_t |
void apa102_init | ( | apa102_t * | dev, |
const apa102_params_t * | params | ||
) |
Initialize (chained) APA102 LEDs.
[out] | dev | device descriptor |
[in] | params | device configuration |
dev
!= NULL params
!= NULL void apa102_load_rgba | ( | const apa102_t * | dev, |
const color_rgba_t | vals[] | ||
) |
Apply the given color values to the connected LED(s)
[in] | dev | device descriptor |
[in] | vals | color values, MUST be of size dev->led_numof |
dev
!= NULL vals
!= NULL