rgbled.h File Reference

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

Detailed Description

#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 (rgbled_t *led, color_rgb_t *color)
 Set the RGB-LED to the given color value. More...