Trait embedded_hal::digital::v2::ToggleableOutputPin
source · pub trait ToggleableOutputPin {
type Error;
// Required method
fn toggle(&mut self) -> Result<(), Self::Error>;
}
Expand description
Output pin that can be toggled
This trait is available if embedded-hal is built with the "unproven"
feature.
See toggleable to use a software implementation if both OutputPin and StatefulOutputPin are implemented. Otherwise, implement this using hardware mechanisms.