pub trait Input {
// Required method
fn read(&self) -> bool;
// Provided method
fn read_activation(&self, mode: ActivationMode) -> ActivationState { ... }
}
Required Methods§
Provided Methods§
sourcefn read_activation(&self, mode: ActivationMode) -> ActivationState
fn read_activation(&self, mode: ActivationMode) -> ActivationState
Get the current state of a GPIO pin, for a given activation mode.