Struct ws281x::handle::Builder
[−]
[src]
pub struct Builder(_);
Methods
impl Builder
[src]
fn frequency(&mut self, value: u32) -> &mut Self
Set the frequency, if unset it picks a proper default.
fn dma(&mut self, value: i32) -> &mut Self
Set the DMA number.
fn channel(&mut self, index: usize, value: Channel) -> &mut Self
Define a new channel.
fn build(&mut self) -> Result<Handle, ()>
Build the Handle
.