embedded-hal 0.1.3

A Hardware Abstraction Layer (HAL) for embedded systems
Documentation
//! Digital I/O

#[cfg(feature = "unproven")]
pub use embedded_hal::digital::InputPin;

/// Single digital output pin
pub trait OutputPin {
    /// Is the output pin high?
    fn is_high(&self) -> bool;

    /// Is the output pin low?
    fn is_low(&self) -> bool;

    /// Sets the pin low
    fn set_low(&mut self);

    /// Sets the pin high
    fn set_high(&mut self);
}