rgbled.h File Reference

High-level driver for easy handling of RGB-LEDs. More...

Detailed Description

High-level driver for easy handling of RGB-LEDs.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file rgbled.h.

#include "color.h"
#include "periph/pwm.h"
+ Include dependency graph for rgbled.h:

Go to the source code of this file.

Data Structures

struct  rgbled_t
 Descriptor struct for rgbleds. More...
 

Functions

void rgbled_init (rgbled_t *led, pwm_t pwm, int channel_r, int channel_g, int channel_b)
 Initialize the RGB LED by assigning PWM channels to colors. More...
 
void rgbled_set (const rgbled_t *led, color_rgb_t *color)
 Set the RGB-LED to the given color value. More...