From cd403a91e6078956445aeb21d6509e863b0592ae Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 8 Dec 2024 12:01:31 +0000 Subject: Modify to use async A changeover from embedded_hal::i2c::I2c to embedded_hal_async::i2c::I2c including changes to all the relevant functions into async functions. Tests have been updated to work using futures-test and embedded-hal-mock with the embedded-hal-async feature. Examples have been kept the same meaning they no longer compile. Currently it doesn't _seem_ like the linux embedded hal can do async i2c so maybe these should be re-written to use embassy? --- src/construction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/construction.rs') diff --git a/src/construction.rs b/src/construction.rs index 84ee8ad..cd9d779 100644 --- a/src/construction.rs +++ b/src/construction.rs @@ -7,7 +7,7 @@ macro_rules! impl_new_destroy { ( $IC:ident, $create:ident, $destroy:ident, $conv:ty ) => { impl Ads1x1x where - I2C: embedded_hal::i2c::I2c, + I2C: embedded_hal_async::i2c::I2c, { /// Create a new instance of the device in OneShot mode. pub fn $create(i2c: I2C, address: TargetAddr) -> Self { -- cgit v1.2.3-54-g00ecf