diff options
Diffstat (limited to 'examples/rp')
| -rw-r--r-- | examples/rp/Cargo.toml | 6 | ||||
| -rw-r--r-- | examples/rp/src/bin/button.rs | 2 |
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" | |||
| 38 | heapless = "0.8" | 38 | heapless = "0.8" |
| 39 | usbd-hid = "0.6.1" | 39 | usbd-hid = "0.6.1" |
| 40 | 40 | ||
| 41 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.2" } | 41 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.3" } |
| 42 | embedded-hal-async = "1.0.0-rc.2" | 42 | embedded-hal-async = "1.0.0-rc.3" |
| 43 | embedded-hal-bus = { version = "0.1.0-rc.2", features = ["async"] } | 43 | embedded-hal-bus = { version = "0.1.0-rc.3", features = ["async"] } |
| 44 | embedded-io-async = { version = "0.6.1", features = ["defmt-03"] } | 44 | embedded-io-async = { version = "0.6.1", features = ["defmt-03"] } |
| 45 | embedded-storage = { version = "0.3" } | 45 | embedded-storage = { version = "0.3" } |
| 46 | static_cell = { version = "2", features = ["nightly"]} | 46 | static_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() { |
