picoborgrev
This module is designed to communicate with the PicoBorg Reverse via Rust and the embedded-hal traits.
See the PiBorg website at www.piborg.org/picoborgreverse for more details on the PicoBorgRev board.
Note: This is still a work in progress and the API should not be considered stable until the
1.0
release.
Usage
The first step is to add picoborgrev
to your cargo.toml
file:
[]
= "0.1"
Then in your module you then need to import the crate:
extern crate picoborgrev;
use PicoBorgRev;
To create a new PicoBorgRev
controller you will need to supply an embedded-hal
implementation
such as linux-embedded-hal
:
extern crate linux_embedded_hal;
use I2cdev;
use Path;
let device = new.expect;
Finally create a new PicoBorgRev
supplying the I2C
implementation:
let mut borg = new.expect;
borg.set_led.unwrap;
Examples
License
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.
Contribution
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.