aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorWillaWillNot <[email protected]>2025-11-22 16:48:19 -0500
committerWillaWillNot <[email protected]>2025-11-22 16:48:46 -0500
commit764c921a573e42f510a74d61f31302b8609bbd6c (patch)
tree546d74daf73f501f7a29a929793ba2a55b47f3a4 /docs
parent54d57bc72f0e2b3eef0fa92d0b730ed6efd7bcaa (diff)
Reverted adding AnyBinding, removed AnyChannel, removed ability for ExtiInput to accept AnyPin and AnyChannel arguments, added ExtiPin trait for all pins which is lost on converstion to AnyPin and contains type-level ExtiChannel information
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/layer-by-layer/blinky-async/src/main.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/docs/examples/layer-by-layer/blinky-async/src/main.rs b/docs/examples/layer-by-layer/blinky-async/src/main.rs
index 02cee2a4b..007f7da46 100644
--- a/docs/examples/layer-by-layer/blinky-async/src/main.rs
+++ b/docs/examples/layer-by-layer/blinky-async/src/main.rs
@@ -16,12 +16,7 @@ bind_interrupts!(
16async fn main(_spawner: Spawner) { 16async fn main(_spawner: Spawner) {
17 let p = embassy_stm32::init(Default::default()); 17 let p = embassy_stm32::init(Default::default());
18 let mut led = Output::new(p.PB14, Level::Low, Speed::VeryHigh); 18 let mut led = Output::new(p.PB14, Level::Low, Speed::VeryHigh);
19 let mut button = ExtiInput::new( 19 let mut button = ExtiInput::new(p.PC13, p.EXTI13, Pull::Up, Irqs);
20 p.PC13,
21 p.EXTI13,
22 Pull::Up,
23 Irqs::as_any::<interrupt::typelevel::EXTI15_10, exti::InterruptHandler<interrupt::typelevel::EXTI15_10>>(),
24 );
25 20
26 loop { 21 loop {
27 button.wait_for_any_edge().await; 22 button.wait_for_any_edge().await;