diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 07:20:05 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 07:20:05 +0100 |
commit | 271c127bd62f49d20a2701c354c93ef68fada677 (patch) | |
tree | 289a1fb88068306b24636a3366cf0a075f229779 /examples | |
parent | 410b31427ec16991ce02e4b91a357dbbaada971f (diff) | |
download | ads1x1x-async-271c127bd62f49d20a2701c354c93ef68fada677.tar.gz ads1x1x-async-271c127bd62f49d20a2701c354c93ef68fada677.tar.xz ads1x1x-async-271c127bd62f49d20a2701c354c93ef68fada677.zip |
Use new channel selection types
Diffstat (limited to 'examples')
-rw-r--r-- | examples/linux.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/linux.rs b/examples/linux.rs index aa1eec4..f4c7e87 100644 --- a/examples/linux.rs +++ b/examples/linux.rs @@ -11,6 +11,6 @@ use ads1x1x::{ Ads1x1x, SlaveAddr, channel }; fn main() { let dev = I2cdev::new("/dev/i2c-1").unwrap(); let mut adc = Ads1x1x::new_ads1013(dev, SlaveAddr::default()); - let measurement = block!(adc.read(&mut channel::A0)).unwrap(); + let measurement = block!(adc.read(&mut channel::DifferentialA0A1)).unwrap(); println!("Measurement: {}", measurement); } |