Module rust_gpiozero::input_devices [] [src]

Input device component interfaces for devices such as Button



Represents a simple push button or switch. Connect one side of the button to a ground pin, and the other to any GPIO pin


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.


Represents a generic GPIO input device.


Represents a generic input device which takes its value from the average of a queue of historical values.