Trait microbit::hal::prelude::InputPin [−]
pub trait InputPin { type Error; fn is_high(&self) -> Result<bool, Self::Error>; fn is_low(&self) -> Result<bool, Self::Error>; }
Expand description
Single digital input pin
This trait is available if embedded-hal is built with the "unproven"
feature.
Associated Types
type Error
Expand description
Error type
Required methods
fn is_high(&self) -> Result<bool, Self::Error>
Expand description
Is the input pin high?
fn is_low(&self) -> Result<bool, Self::Error>
Expand description
Is the input pin low?
Implementors
Loading content...