led_strip_update_rgb

Function led_strip_update_rgb 

Source
pub unsafe extern "C" fn led_strip_update_rgb(
    dev: *const device,
    pixels: *mut led_rgb,
    num_pixels: usize,
) -> i32
Expand description

@brief Update an LED strip with the given RGB array.

@param dev LED strip device. @param pixels Array of pixel data. @param num_pixels Length of pixels array.

@retval 0 on success. @retval -errno negative errno code on failure.

@warning This routine may overwrite @a pixels.