aboutsummaryrefslogtreecommitdiff
path: root/examples/src/bin/button_async.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/bin/button_async.rs')
-rw-r--r--examples/src/bin/button_async.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/src/bin/button_async.rs b/examples/src/bin/button_async.rs
index 1ecec2e48..6cc7b62cd 100644
--- a/examples/src/bin/button_async.rs
+++ b/examples/src/bin/button_async.rs
@@ -3,7 +3,7 @@
3 3
4use embassy_executor::Spawner; 4use embassy_executor::Spawner;
5use embassy_time::Timer; 5use embassy_time::Timer;
6use hal::gpio::{DriveStrength, Input, Pull, SlewRate}; 6use hal::gpio::{Input, Pull};
7use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _}; 7use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _};
8 8
9#[embassy_executor::main] 9#[embassy_executor::main]
@@ -13,7 +13,8 @@ async fn main(_spawner: Spawner) {
13 defmt::info!("GPIO interrupt example"); 13 defmt::info!("GPIO interrupt example");
14 14
15 // This button is labeled "WAKEUP" on the FRDM-MCXA276 15 // This button is labeled "WAKEUP" on the FRDM-MCXA276
16 let mut pin = Input::new(p.P1_7, Pull::Up, DriveStrength::Normal, SlewRate::Fast); 16 // The board already has a 10K pullup
17 let mut pin = Input::new(p.P1_7, Pull::Disabled);
17 18
18 let mut press_count = 0u32; 19 let mut press_count = 0u32;
19 20