A simple interface to GPIO devices with Raspberry Pi.
This library is based on GPIOZero library.
The idea is to get started with physical computing using Rust with little coding by hiding the underlying complexity.
The library uses BCM Pin numbering
Example : Blinking an LED
Example : Wait for a Button Press
Compare this to using the crate
sysfs_gpio to blink an LED on the Raspberry Pi :
extern crate sysfs_gpio; use ; use sleep; use Duration;
rust_gpiozero, first add this to your Cargo.toml:
 = "0.2.0"
Compiling your project on a Raspberry Pi directly can take significant time depending on the model. Ideally, you would cross compile your project then run it on the Raspberry Pi.
The following features are planned :
- Support for
- Support for common devices such as Accelerometer, Temperature sensors, etc
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Thanks for your interest in
rust_gpiozero. I am a newbie rustacean and just started using the language! I am using this project to learn more about Rust. Feel free to give feedback or send PRs. Your experiences and feedback will also benefit others who use this library.