aboutsummaryrefslogtreecommitdiff
path: root/examples/rp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rp')
-rw-r--r--examples/rp/Cargo.toml6
-rw-r--r--examples/rp/src/bin/button.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/rp/Cargo.toml b/examples/rp/Cargo.toml
index 7f637758d..521f17b82 100644
--- a/examples/rp/Cargo.toml
+++ b/examples/rp/Cargo.toml
@@ -38,9 +38,9 @@ smart-leds = "0.3.0"
38heapless = "0.8" 38heapless = "0.8"
39usbd-hid = "0.6.1" 39usbd-hid = "0.6.1"
40 40
41embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.2" } 41embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.3" }
42embedded-hal-async = "1.0.0-rc.2" 42embedded-hal-async = "1.0.0-rc.3"
43embedded-hal-bus = { version = "0.1.0-rc.2", features = ["async"] } 43embedded-hal-bus = { version = "0.1.0-rc.3", features = ["async"] }
44embedded-io-async = { version = "0.6.1", features = ["defmt-03"] } 44embedded-io-async = { version = "0.6.1", features = ["defmt-03"] }
45embedded-storage = { version = "0.3" } 45embedded-storage = { version = "0.3" }
46static_cell = { version = "2", features = ["nightly"]} 46static_cell = { version = "2", features = ["nightly"]}
diff --git a/examples/rp/src/bin/button.rs b/examples/rp/src/bin/button.rs
index d7aa89410..a9f34ab5d 100644
--- a/examples/rp/src/bin/button.rs
+++ b/examples/rp/src/bin/button.rs
@@ -17,7 +17,7 @@ async fn main(_spawner: Spawner) {
17 17
18 // Use PIN_28, Pin34 on J0 for RP Pico, as a input. 18 // Use PIN_28, Pin34 on J0 for RP Pico, as a input.
19 // You need to add your own button. 19 // You need to add your own button.
20 let button = Input::new(p.PIN_28, Pull::Up); 20 let mut button = Input::new(p.PIN_28, Pull::Up);
21 21
22 loop { 22 loop {
23 if button.is_high() { 23 if button.is_high() {