diff options
Diffstat (limited to 'examples/linux.rs')
-rw-r--r-- | examples/linux.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/linux.rs b/examples/linux.rs index d0b2bc5..7364816 100644 --- a/examples/linux.rs +++ b/examples/linux.rs @@ -1,12 +1,8 @@ -extern crate embedded_hal; use embedded_hal::adc::OneShot; -extern crate linux_embedded_hal; -#[macro_use(block)] -extern crate nb; -extern crate ads1x1x; +use linux_embedded_hal::I2cdev; +use nb::block; use ads1x1x::{channel, Ads1x1x, SlaveAddr}; -use linux_embedded_hal::I2cdev; fn main() { let dev = I2cdev::new("/dev/i2c-1").unwrap(); |