-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
I get a strange error when trying to build the blinky example:
error[E0433]: failed to resolve: use of undeclared crate or module `embedded_hal`
--> src/main.rs:17:5
|
17 | use embedded_hal::digital::v2::OutputPin;
| ^^^^^^^^^^^^ use of undeclared crate or module `embedded_hal`and a few lines further:
error[E0599]: no method named `set_high` found for struct `rp_pico::rp2040_hal::gpio::Pin` in the current scope
--> src/main.rs:85:17
|
85 | led_pin.set_high().unwrap();
| ^^^^^^^^ method not found in `Pin<Gpio25, FunctionSio<SioOutput>, PullDown>`
|
::: /xx/xx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embedded-hal-0.2.7/src/digital/v2.rs:60:8
|
60 | fn set_high(&mut self) -> Result<(), Self::Error>;
| -------- the method is available for `rp_pico::rp2040_hal::gpio::Pin<Gpio25, FunctionSio<SioOutput>, PullDown>` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
14 + use embedded_hal::digital::v2::OutputPin;
|I tried to use the toml of the example and the toml based on the from scratch chapter.
I tried this with the example code from the blinky file.
I am using cargo 1.73.0 (9c4383fb5 2023-08-26) and
rustup 1.26.0 (5af9b9484 2023-04-05)
rustc 1.73.0 (cc66ad468 2023-10-03)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels