pub trait Input {
    fn read(&self) -> bool;

    fn read_activation(&self, mode: ActivationMode) -> ActivationState { ... }
}

Required Methods

Get the current state of an input GPIO pin. For an output pin, return the output; for an input pin, return the input; for disabled or function pins the value is undefined.

Provided Methods

Get the current state of a GPIO pin, for a given activation mode.

Implementors