led_set_channel

Function led_set_channel 

Source
pub unsafe extern "C" fn led_set_channel(
    dev: *const device,
    channel: u32,
    value: u8,
) -> i32
Expand description

@brief Set a single LED channel

This optional routine sets a single LED channel to the given value.

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

@param dev LED device @param channel Absolute channel number (i.e. not relative to a LED) @param value Value to configure the channel with @return 0 on success, negative on error