diff options
author | Timo Kröger <timo.kroeger@hitachienergy.com> | 2021-12-22 13:05:46 +0100 |
---|---|---|
committer | Timo Kröger <timo.kroeger@hitachienergy.com> | 2021-12-22 13:05:46 +0100 |
commit | 716f03010469cb1a5212fd12764f314ce1e7bcc9 (patch) | |
tree | d8d53b0902859e3bc1ed68d89cd46f34dd257279 /examples/src/bin/ble_peripheral_onoff.rs | |
parent | f81a201211d63a994528e69b1c5a224be9b53f85 (diff) | |
download | nrf-softdevice-716f03010469cb1a5212fd12764f314ce1e7bcc9.zip |
Update dependencies to latest embassy git version
Diffstat (limited to 'examples/src/bin/ble_peripheral_onoff.rs')
-rw-r--r-- | examples/src/bin/ble_peripheral_onoff.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/src/bin/ble_peripheral_onoff.rs b/examples/src/bin/ble_peripheral_onoff.rs index 32eac93..3ccd110 100644 --- a/examples/src/bin/ble_peripheral_onoff.rs +++ b/examples/src/bin/ble_peripheral_onoff.rs @@ -14,7 +14,6 @@ use embassy::executor::Executor; use embassy::traits::gpio::WaitForLow; use embassy::util::Forever; use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull}; -use embassy_nrf::gpiote::PortInput; use embassy_nrf::interrupt::Priority; use futures::pin_mut; @@ -87,8 +86,8 @@ async fn bluetooth_task(sd: &'static Softdevice, button1: AnyPin, button2: AnyPi info!("Bluetooth is OFF"); info!("Press nrf52840-dk button 1 to enable, button 2 to disable"); - let button1 = PortInput::new(Input::new(button1, Pull::Up)); - let button2 = PortInput::new(Input::new(button2, Pull::Up)); + let button1 = Input::new(button1, Pull::Up); + let button2 = Input::new(button2, Pull::Up); pin_mut!(button1); pin_mut!(button2); loop { |