led_set_color

Function led_set_color 

Source
pub unsafe extern "C" fn led_set_color(
    dev: *const device,
    led: u32,
    num_colors: u8,
    color: *const u8,
) -> i32
Expand description

@brief Set LED color

This routine configures all the color channels of a LED with the given color array.

Calling this function after led_blink() won’t affect blinking.

@param dev LED device @param led LED number @param num_colors Number of colors in the array. @param color Array of colors. It must be ordered following the color mapping of the LED controller. See the color_mapping member in struct led_info. @return 0 on success, negative on error