diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2020-06-21 22:52:41 +0200 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2020-06-21 22:52:41 +0200 |
commit | 6aed921780dbe12c058e0aa0ce8b617e404b5a87 (patch) | |
tree | 3b76c4d8946aede3e48fcfade62a2e19488ee118 /README.md | |
parent | b7e9c9acf1bb42f4966930354135782bab57394a (diff) | |
download | ads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.tar.gz ads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.tar.xz ads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.zip |
Use edition 2018
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -77,15 +77,11 @@ Please find additional examples using hardware in this repository: [driver-examp [driver-examples]: https://github.com/eldruin/driver-examples ```rust -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(); |