Struct rust_gpiozero::input_devices::DigitalInputDevice [] [src]

pub struct DigitalInputDevice { /* fields omitted */ }

Represents a generic input device with typical on/off behaviour. Adds machinery to fire the active and inactive events for devices that operate in a typical digital manner: straight forward on / off states with (reasonably) clean transitions between the two.

Methods

impl DigitalInputDevice
[src]

[src]

Create a new Digital Input Device

Trait Implementations

impl Device for DigitalInputDevice
[src]

gives DigitalInputDevice Device behaviours such as close, is_active, etc

[src]

Get the pin

[src]

Returns a value representing the device's state.

[src]

Shut down the device and release all associated resources.

[src]

Returns True if the device is currently active and Falseotherwise.

impl EventsTrait for DigitalInputDevice
[src]

Give DigitalInputDevice event traits

[src]

Pause the program until the device is activated

[src]

Pause the program until the device is deactivated

Auto Trait Implementations