Update embedded-hal to 1.0.0-rc.3

This commit is contained in:
Dario Nieuwenhuis
2023-12-14 16:01:51 +01:00
parent 7b9b22d7f8
commit 9d8dbd67fe
41 changed files with 238 additions and 203 deletions

View File

@ -38,9 +38,9 @@ smart-leds = "0.3.0"
heapless = "0.8"
usbd-hid = "0.6.1"
embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.2" }
embedded-hal-async = "1.0.0-rc.2"
embedded-hal-bus = { version = "0.1.0-rc.2", features = ["async"] }
embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.3" }
embedded-hal-async = "1.0.0-rc.3"
embedded-hal-bus = { version = "0.1.0-rc.3", features = ["async"] }
embedded-io-async = { version = "0.6.1", features = ["defmt-03"] }
embedded-storage = { version = "0.3" }
static_cell = { version = "2", features = ["nightly"]}

View File

@ -17,7 +17,7 @@ async fn main(_spawner: Spawner) {
// Use PIN_28, Pin34 on J0 for RP Pico, as a input.
// You need to add your own button.
let button = Input::new(p.PIN_28, Pull::Up);
let mut button = Input::new(p.PIN_28, Pull::Up);
loop {
if button.is_high() {