From 5cd361340635aafe8806c82805622bc6afc4c4d7 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 19 Jan 2024 15:09:19 +0100 Subject: Remove `I2cInterface`. (#20) * Merge `ReadData` and `WriteData` traits. * Remove `I2cInterface`. * Update changelog. * Fix links. --- examples/typed.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples') 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, Ads1115, Resolution16Bit, ads1x1x::mode::OneShot>; +type Adc = Ads1x1x; /// Read a single value from channel A. /// Returns 0 on Error. -- cgit v1.2.3-54-g00ecf