aboutsummaryrefslogtreecommitdiff
path: root/examples/rp/src/bin/i2c_async.rs
diff options
context:
space:
mode:
authorAdam Greig <[email protected]>2023-10-15 00:57:25 +0100
committerAdam Greig <[email protected]>2023-10-15 01:30:12 +0100
commit0621e957a0ddc7010d46b3ea3ddc8b9852bc8333 (patch)
treef6caefe939109e55a73e9141c736d2f6c20f51e8 /examples/rp/src/bin/i2c_async.rs
parent7559f9e5834799b041d899767ef4305dcfdf0181 (diff)
time: Update examples, tests, and other code to use new Timer::after_x convenience methods
Diffstat (limited to 'examples/rp/src/bin/i2c_async.rs')
-rw-r--r--examples/rp/src/bin/i2c_async.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rp/src/bin/i2c_async.rs b/examples/rp/src/bin/i2c_async.rs
index 93224bc43..7b53aae72 100644
--- a/examples/rp/src/bin/i2c_async.rs
+++ b/examples/rp/src/bin/i2c_async.rs
@@ -12,7 +12,7 @@ use embassy_executor::Spawner;
12use embassy_rp::bind_interrupts; 12use embassy_rp::bind_interrupts;
13use embassy_rp::i2c::{self, Config, InterruptHandler}; 13use embassy_rp::i2c::{self, Config, InterruptHandler};
14use embassy_rp::peripherals::I2C1; 14use embassy_rp::peripherals::I2C1;
15use embassy_time::{Duration, Timer}; 15use embassy_time::Timer;
16use embedded_hal_async::i2c::I2c; 16use embedded_hal_async::i2c::I2c;
17use {defmt_rtt as _, panic_probe as _}; 17use {defmt_rtt as _, panic_probe as _};
18 18
@@ -106,6 +106,6 @@ async fn main(_spawner: Spawner) {
106 } 106 }
107 } 107 }
108 108
109 Timer::after(Duration::from_millis(100)).await; 109 Timer::after_millis(100).await;
110 } 110 }
111} 111}