Struct rs_ws281x::ChannelBuilder [−][src]
pub struct ChannelBuilder(pub ws2811_channel_t);
A struct used to build a channel configuration for a ControllerBuilder.
Methods
impl ChannelBuilder
[src]
impl ChannelBuilder
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates a new ChannelBuilder
pub fn pin(&mut self, value: i32) -> &mut Self
[src]
pub fn pin(&mut self, value: i32) -> &mut Self
Sets the GPIO pin used by this channel
pub fn count(&mut self, value: i32) -> &mut Self
[src]
pub fn count(&mut self, value: i32) -> &mut Self
Sets the number of LEDs attached to this channel
pub fn strip_type(&mut self, value: StripType) -> &mut Self
[src]
pub fn strip_type(&mut self, value: StripType) -> &mut Self
Sets the strip type of this channel
pub fn invert(&mut self, value: bool) -> &mut Self
[src]
pub fn invert(&mut self, value: bool) -> &mut Self
Sets the invert flag on the channel
pub fn brightness(&mut self, value: u8) -> &mut Self
[src]
pub fn brightness(&mut self, value: u8) -> &mut Self
Sets the brightness of this channel
pub fn wshift(&mut self, value: u8) -> &mut Self
[src]
pub fn wshift(&mut self, value: u8) -> &mut Self
Sets the white shift of this channel
pub fn rshift(&mut self, value: u8) -> &mut Self
[src]
pub fn rshift(&mut self, value: u8) -> &mut Self
Sets the red shift of this channel
pub fn gshift(&mut self, value: u8) -> &mut Self
[src]
pub fn gshift(&mut self, value: u8) -> &mut Self
Sets the green shift of this channel
pub fn bshift(&mut self, value: u8) -> &mut Self
[src]
pub fn bshift(&mut self, value: u8) -> &mut Self
Sets the blue shift of this channel
pub fn build(&mut self) -> ws2811_channel_t
[src]
pub fn build(&mut self) -> ws2811_channel_t
Return the built channel.
Trait Implementations
impl Debug for ChannelBuilder
[src]
impl Debug for ChannelBuilder
Auto Trait Implementations
impl !Send for ChannelBuilder
impl !Send for ChannelBuilder
impl !Sync for ChannelBuilder
impl !Sync for ChannelBuilder