Trait embedded_hal::digital::ToggleableOutputPin

source ·
pub trait ToggleableOutputPin: ErrorType {
    // Required method
    fn toggle(&mut self) -> Result<(), Self::Error>;
}
Expand description

Output pin that can be toggled

Required Methods§

source

fn toggle(&mut self) -> Result<(), Self::Error>

Toggle pin output.

Implementations on Foreign Types§

source§

impl<T: ToggleableOutputPin> ToggleableOutputPin for &mut T

source§

fn toggle(&mut self) -> Result<(), Self::Error>

Implementors§