Struct rust_gpiozero::input_devices::InputDevice
[−]
[src]
pub struct InputDevice { pub pin: Pin, }
Represents a generic GPIO input device.
Fields
pin: Pin
Methods
impl InputDevice
[src]
pub fn new(pin: u64) -> InputDevice
[src]
Creates a new input device with pin number pin
Trait Implementations
impl Debug for InputDevice
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more