sensehat 1.1.0

Interface with the Raspberry Pi Foundation's official Sense HAT sensor board.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate gcc;

#[cfg(feature = "rtimu")]
fn main() {
    gcc::Build::new()
        .cpp(true) // Switch to C++ library compilation.
        .file("src/rtimulib_wrapper.cc")
        .compile("librtimulib_wrapper.a");
    println!("cargo:rustc-link-lib=RTIMULib");
}

#[cfg(not(feature = "rtimu"))]
fn main() {}