led_request_rgb()

Request that the LEDs flash a color that is specified by its red, green, and blue components.

Synopsis:

#include <bps/led.h>
 
BPS_API int led_request_rgb(const char *id, int rgb, int blink_count)

Arguments:

id
An identifier for this request. This is used when updating a request by calling led_request_color() or led_request_rgb() again or when canceling a request with led_cancel().
rgb
The color to flash the LEDs. The red, green, and blue components are specified in this value as "0x00rrggbb" where: rr specifies the red intensitygg specifies the green intensitybb specifies the blue intensity Note that the intensity is fixed so that any non-zero intensity is treated as full intensity. That is, a distinction is only made between zero and non-zero in each component so that only 7 unique colors are available.
blink_count
The number of times to blink. Use a value of 0 to continue blinking until canceled or until the application exits.

Library:

libbps

Description:

The led_request() function requests that the LEDs flash the color specified by its red, green, and blue components and the specified number of times. If the application does not have the access_led_control capability, this function will fail.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.