Bindings for RaspberryPi's vcgencmd utility

Crates.io Documentation MIT license

vcgencmd provides a way to interact with the vcgencmd utility included in Raspbian.

As of yet, not all vcgencmd commands have a binding. To see which commands are missing, take a look at PROGRESS.md in the projects repo. If you need a specific command that's unimplemented, feel free to open a pull request either asking for it or submitting it yourself.

Installation

Install from Crates.io:

toml [dependencies] vcgencmd = "0.2.0"

Serialization and deserialization for the few structs this crate contains are supported via a serde_support feature flag: toml [dependencies] vcgencmd = {version: "0.2.0", features = ["serde_support"]

Quick Start

```rust use vcgencmd::{measuretemp, getthrottle, interpretbitpattern};

// Gives the current temperature as f64 in °C let temp = measure_temp();

let throttlestatus = interpretbitpattern(getthrottle.unwrap()); ```