Skip to content

Commit

Permalink
Update rp-pico deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Kristell committed Feb 7, 2024
1 parent ba084e8 commit dc6ae2d
Show file tree
Hide file tree
Showing 2 changed files with 5 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
5 changes: 3 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, Interrupt, Pin},
sio::Sio,
watchdog::Watchdog,
},
Expand All @@ -22,12 +22,13 @@ mod app {

// IR receiver stuff
use infrared::{protocol::*, Receiver};
use rp_pico::hal::gpio::{FunctionSioInput, PullNone};

#[monotonic(binds = TIMER_IRQ_0, default = true)]
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 dc6ae2d

Please sign in to comment.