Everything is unwrapped under the hood for the precious prettiness of your code. It's more than a simple Rust crate, it's a philosophy of life.
```rust norun use unbotheredgpio::{UnbotheredGpioPin, UnbotheredGpioPinReader};
// Open pin 17 for reading let mut reader = UnbotheredGpioPinReader::new(17);
let state: bool = reader.read(); println!("Pin 17 state : {}", state); ```
```rust norun use unbotheredgpio::{UnbotheredGpioPin, UnbotheredGpioPinWriter};
// Open pin 17 for writing let mut writer = UnbotheredGpioPinWriter::new(17);
// Set gpio pin 17 state to true writer.write(true); ```
```rust norun use unbotheredgpio::UnbotheredGpioPinListener;
UnbotheredGpioPinListener::new(17, |state: bool| { println!("New state for pin 17 : {}", state) }).keep_alive(); ```