sensor/src/main.rs

15 lines
215 B
Rust

pub mod temp;
use temp::*;
//#[link(name = "pcsensor")]
//#[link(name = "usb-1.0")]
//extern "C" {
// fn get_temp_c() -> libc::c_float;
//}
fn main() {
let temp = get_temp_r();
println!("{}", temp);
}