Skip to content

Commit

Permalink
Update and adjust code to make the example build again
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Kristell authored and jkristell committed Feb 8, 2024
1 parent de3cd1f commit e24477b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/rp-pico/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }

Expand Down
4 changes: 2 additions & 2 deletions examples/rp-pico/src/bin/receiver-event-driven-rtic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -27,7 +27,7 @@ mod app {
type Monotonic = Rp2040Monotonic;

// Useful aliases
pub type IRPin = Pin<Gpio12, Input<Floating>>;
pub type IRPin = Pin<Gpio12, FunctionSioInput, PullNone>;
pub type IrReceiver =
Receiver<AppleNec, IRPin, <Monotonic as rtic_monotonic::Monotonic>::Instant>;

Expand Down

0 comments on commit e24477b

Please sign in to comment.