Contiki-NG
Loading...
Searching...
No Matches
Generic RGB LED driver

Files

file  rgb-led.c
 Implementation of the RGB LED driver.
 
file  rgb-led.h
 Header file for the RGB LED driver.
 

Functions

void rgb_led_off (void)
 Turn off the RGB LED.
 
void rgb_led_set (uint8_t colour)
 Set the colour of the RGB LED.
 

Detailed Description

This is a driver for a tri-color RGB LED part, such as for example the Broadcom (ex Avago Technologies) PLCC-4 Tricolor Black Surface LED present on all Zolertia Zoul-based boards.

This driver sits on top of the LED HAL. Therefore, any port that wishes to use this driver should first implement the GPIO HAL and the new LED API. This driver will set the colour of the RGB LED by using combinations of LED_RED, LED_GREEN and LED_BLUE. Therefore, those must be correctly defined by the platform configuration.

Function Documentation

◆ rgb_led_set()

void rgb_led_set ( uint8_t colour)

Set the colour of the RGB LED.

Parameters
colourThe colour to set

colour can take the value of one of the RGB_LED_xyz defines.

Definition at line 51 of file rgb-led.c.

References LEDS_ALL, and LEDS_COLOUR_NONE.