Struct on_off_sequence_output::OnOffSequenceOutput [−][src]
pub struct OnOffSequenceOutput<T: OutputPin> { pub pin: T, // some fields omitted }
Expand description
Output of blinking patterns on an LED
Fields
pin: T
The wrapped output pin.
Implementations
impl<T: OutputPin> OnOffSequenceOutput<T>
[src]
impl<T: OutputPin> OnOffSequenceOutput<T>
[src]pub fn set(
&mut self,
output_states: u128,
number_of_output_states: u16,
repeat: Repeat
)
[src]
pub fn set(
&mut self,
output_states: u128,
number_of_output_states: u16,
repeat: Repeat
)
[src]Set a new output
Arguments
output_states
- bits of a unsigned number: 1 equals on; 0 equals off The bits are processes from lsb to msb.number_of_output_states
- how many bits of the fixed number are considered to for the output state sequence counted from lsbrepeat
- How often is the pattern repeated
pub fn set_morse(
&mut self,
morse_text: &str,
repeat: Repeat
) -> Result<(), MorseError>
[src]
pub fn set_morse(
&mut self,
morse_text: &str,
repeat: Repeat
) -> Result<(), MorseError>
[src]Trait Implementations
impl<T: OutputPin> OutputUpdate for OnOffSequenceOutput<T>
[src]
impl<T: OutputPin> OutputUpdate for OnOffSequenceOutput<T>
[src]Auto Trait Implementations
impl<T> Send for OnOffSequenceOutput<T> where
T: Send,
T: Send,
impl<T> Sync for OnOffSequenceOutput<T> where
T: Sync,
T: Sync,
impl<T> Unpin for OnOffSequenceOutput<T> where
T: Unpin,
T: Unpin,