pub trait _embedded_hal_digital_ToggleableOutputPin {
    // Required method
    fn toggle(&mut self);
}
👎Deprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Expand description

Output pin that can be toggled

This trait is available if embedded-hal is built with the "unproven" feature.

This version of the trait is now deprecated. Please use the new ToggleableOutputPin trait in digital::v2::ToggleableOutputPin.

See toggleable to use a software implementation if both OutputPin and StatefulOutputPin are implemented. Otherwise, implement this using hardware mechanisms.

Required Methods§

source

fn toggle(&mut self)

👎Deprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.

Toggle pin output.

Implementors§

source§

impl<P> ToggleableOutputPin for P
where P: Default,