diff options
Diffstat (limited to 'examples/all_channels.rs')
-rw-r--r-- | examples/all_channels.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/all_channels.rs b/examples/all_channels.rs index 39687ca..283f834 100644 --- a/examples/all_channels.rs +++ b/examples/all_channels.rs @@ -1,11 +1,11 @@ use linux_embedded_hal::I2cdev; use nb::block; -use ads1x1x::{channel, Ads1x1x, SlaveAddr}; +use ads1x1x::{channel, Ads1x1x, TargetAddr}; fn main() { let dev = I2cdev::new("/dev/i2c-1").unwrap(); - let mut adc = Ads1x1x::new_ads1015(dev, SlaveAddr::default()); + let mut adc = Ads1x1x::new_ads1015(dev, TargetAddr::default()); let values = [ block!(adc.read(channel::SingleA0)).unwrap(), block!(adc.read(channel::SingleA1)).unwrap(), |