use super::*;
#[derive(Default, Clone, Copy)]
pub struct NoPin;
impl private::Sealed for NoPin {}
impl embedded_hal::digital::ErrorType for NoPin {
type Error = core::convert::Infallible;
}
impl embedded_hal::digital::OutputPin for NoPin {
fn set_low(&mut self) -> Result<(), Self::Error> {
Ok(())
}
fn set_high(&mut self) -> Result<(), Self::Error> {
Ok(())
}
}
impl embedded_hal::digital::StatefulOutputPin for NoPin {
fn is_set_high(&mut self) -> Result<bool, Self::Error> {
Ok(false)
}
fn is_set_low(&mut self) -> Result<bool, Self::Error> {
Ok(false)
}
}