/bb.rs

Rust library to do GPIO on the beaglebone

Primary LanguageRustApache License 2.0Apache-2.0

Build Status

bb.rs

Rust library to do GPIO on the beaglebone

This library has been fully developed on the beaglebone using cargo!

(There are no official rust/cargo nightlies for ARM at the moment, but I'm hosting my own here)

Canonical example

extern crate bb;

use bb::led::{Led, Zero};

fn main() {
    // Blink LED0: ON for 500 ms, OFF for 500 ms, repeat
    Led::new(Zero).blink(500, 500);
}

Cargo this

# Cargo.toml
[dependencies.bb]
git = "https://github.com/japaric/bb.rs"

Features

Very early WIP

  • Only the GPIO wired to the board LEDs can be used
  • Device tree stuff will come later

License

bb.rs is dual licensed under the Apache 2.0 license and the MIT license.

See LICENSE-APACHE and LICENSE-MIT for more details.