pub struct OnOffSequenceOutput<T: OutputPin> {
pub pin: T,
/* private fields */
}
Expand description
Output of blinking patterns on an LED
Fields§
§pin: T
The wrapped output pin.
Implementations§
Source§impl<T: OutputPin> OnOffSequenceOutput<T>
impl<T: OutputPin> OnOffSequenceOutput<T>
Sourcepub fn set(
&mut self,
output_states: u128,
number_of_output_states: u16,
repeat: Repeat,
)
pub fn set( &mut self, output_states: u128, number_of_output_states: u16, repeat: Repeat, )
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
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OnOffSequenceOutput<T>where
T: Freeze,
impl<T> RefUnwindSafe for OnOffSequenceOutput<T>where
T: RefUnwindSafe,
impl<T> Send for OnOffSequenceOutput<T>where
T: Send,
impl<T> Sync for OnOffSequenceOutput<T>where
T: Sync,
impl<T> Unpin for OnOffSequenceOutput<T>where
T: Unpin,
impl<T> UnwindSafe for OnOffSequenceOutput<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more