led_strip_update_channels

Function led_strip_update_channels 

Source
pub unsafe extern "C" fn led_strip_update_channels(
    dev: *const device,
    channels: *mut u8,
    num_channels: usize,
) -> i32
Expand description

@brief Update an LED strip with the given channel array. Each channel byte corresponds to an individually addressable color channel or LED. Channels are updated linearly in strip order.

@param dev LED strip device. @param channels Array of per-channel data. @param num_channels Length of channels array.

@retval 0 on success. @retval -ENOSYS if not implemented. @retval -errno negative errno code on other failure.

@warning This routine may overwrite @a channels.