diff options
author | Markus Reiter <me@reitermark.us> | 2024-01-19 15:09:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-19 15:09:19 +0100 |
commit | 5cd361340635aafe8806c82805622bc6afc4c4d7 (patch) | |
tree | e71f39a729a95020ca299925b93d0990416666b7 /examples | |
parent | 6f417d833e2a4041f32a6578332b050d79028910 (diff) | |
download | ads1x1x-async-5cd361340635aafe8806c82805622bc6afc4c4d7.tar.gz ads1x1x-async-5cd361340635aafe8806c82805622bc6afc4c4d7.tar.xz ads1x1x-async-5cd361340635aafe8806c82805622bc6afc4c4d7.zip |
Remove `I2cInterface`. (#20)
* Merge `ReadData` and `WriteData` traits.
* Remove `I2cInterface`.
* Update changelog.
* Fix links.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/typed.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/typed.rs b/examples/typed.rs index 6d6961c..572754f 100644 --- a/examples/typed.rs +++ b/examples/typed.rs @@ -7,12 +7,11 @@ use nb::block; use ads1x1x::{ channel, ic::{Ads1115, Resolution16Bit}, - interface::I2cInterface, Ads1x1x, SlaveAddr, }; /// Type alias -type Adc = Ads1x1x<I2cInterface<I2cdev>, Ads1115, Resolution16Bit, ads1x1x::mode::OneShot>; +type Adc = Ads1x1x<I2cdev, Ads1115, Resolution16Bit, ads1x1x::mode::OneShot>; /// Read a single value from channel A. /// Returns 0 on Error. |