diff options
Diffstat (limited to 'examples/nrf52840/src/bin/twim_lowpower.rs')
| -rw-r--r-- | examples/nrf52840/src/bin/twim_lowpower.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf52840/src/bin/twim_lowpower.rs b/examples/nrf52840/src/bin/twim_lowpower.rs index 0970d3c3c..bf9f966ef 100644 --- a/examples/nrf52840/src/bin/twim_lowpower.rs +++ b/examples/nrf52840/src/bin/twim_lowpower.rs | |||
| @@ -14,7 +14,7 @@ use defmt::*; | |||
| 14 | use embassy_executor::Spawner; | 14 | use embassy_executor::Spawner; |
| 15 | use embassy_nrf::twim::{self, Twim}; | 15 | use embassy_nrf::twim::{self, Twim}; |
| 16 | use embassy_nrf::{bind_interrupts, peripherals}; | 16 | use embassy_nrf::{bind_interrupts, peripherals}; |
| 17 | use embassy_time::{Duration, Timer}; | 17 | use embassy_time::Timer; |
| 18 | use {defmt_rtt as _, panic_probe as _}; | 18 | use {defmt_rtt as _, panic_probe as _}; |
| 19 | 19 | ||
| 20 | const ADDRESS: u8 = 0x50; | 20 | const ADDRESS: u8 = 0x50; |
| @@ -48,6 +48,6 @@ async fn main(_p: Spawner) { | |||
| 48 | 48 | ||
| 49 | // Sleep for 1 second. The executor ensures the core sleeps with a WFE when it has nothing to do. | 49 | // Sleep for 1 second. The executor ensures the core sleeps with a WFE when it has nothing to do. |
| 50 | // During this sleep, the nRF chip should only use ~3uA | 50 | // During this sleep, the nRF chip should only use ~3uA |
| 51 | Timer::after(Duration::from_secs(1)).await; | 51 | Timer::after_secs(1).await; |
| 52 | } | 52 | } |
| 53 | } | 53 | } |
