pub trait StatefulOutputPin {
    fn is_set_high(&self) -> bool;
fn is_set_low(&self) -> bool; }
👎 Deprecated since 0.2.2:

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

Expand description

Push-pull output pin that can read its output state

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 StatefulOutputPin trait in digital::v2::StatefulOutputPin.

Required methods

👎 Deprecated since 0.2.2:

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

Is the pin in drive high mode?

NOTE this does not read the electrical state of the pin

👎 Deprecated since 0.2.2:

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

Is the pin in drive low mode?

NOTE this does not read the electrical state of the pin

Implementors

Implementation of v1::StatefulOutputPin trait for v2::StatefulOutputPin fallible pins where errors will panic.