summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-11 07:20:05 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-11 07:20:05 +0100
commit271c127bd62f49d20a2701c354c93ef68fada677 (patch)
tree289a1fb88068306b24636a3366cf0a075f229779 /examples
parent410b31427ec16991ce02e4b91a357dbbaada971f (diff)
downloadads1x1x-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.rs2
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);
}