From e24477bad7cf822dce680efc520090ddd95cbdf8 Mon Sep 17 00:00:00 2001 From: Johan Kristell Date: Thu, 8 Feb 2024 20:41:48 +0100 Subject: [PATCH] Update and adjust code to make the example build again --- examples/rp-pico/Cargo.toml | 4 ++-- examples/rp-pico/src/bin/receiver-event-driven-rtic.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/rp-pico/Cargo.toml b/examples/rp-pico/Cargo.toml index 425e618..2880402 100644 --- a/examples/rp-pico/Cargo.toml +++ b/examples/rp-pico/Cargo.toml @@ -13,11 +13,11 @@ defmt = "0.3" defmt-rtt = "0.4.0" panic-probe = { version = "0.3.0", features = ["print-defmt"] } -rp-pico = "0.7.0" +rp-pico = "0.8.0" cortex-m-rtic = "1" rtic-monotonic = "1" -rp2040-monotonic = "1.1.0" +rp2040-monotonic = "1.3.0" infrared = { path = "../..", features = ["defmt"] } diff --git a/examples/rp-pico/src/bin/receiver-event-driven-rtic.rs b/examples/rp-pico/src/bin/receiver-event-driven-rtic.rs index 956bd91..28395c5 100644 --- a/examples/rp-pico/src/bin/receiver-event-driven-rtic.rs +++ b/examples/rp-pico/src/bin/receiver-event-driven-rtic.rs @@ -10,7 +10,7 @@ mod app { use rp_pico::{ hal::{ clocks::init_clocks_and_plls, - gpio::{bank0::Gpio12, Floating, Input, Interrupt, Pin}, + gpio::{bank0::Gpio12, FunctionSioInput, PullNone, Interrupt, Pin}, sio::Sio, watchdog::Watchdog, }, @@ -27,7 +27,7 @@ mod app { type Monotonic = Rp2040Monotonic; // Useful aliases - pub type IRPin = Pin>; + pub type IRPin = Pin; pub type IrReceiver = Receiver::Instant>;