Closed fujexo closed 1 year ago
I have been running into the same problem with the latest version (0.4.4).
With
[dependencies]
bme280 = "0.3.0"
linux-embedded-hal = { version = "0.3", features = ["gpio_cdev"] }
The code compiles and runs, so it seems to be a regression.
Can you please try the linux-embedded-hal with the latest embedded-hal alpha releases? Those errors are related to the traits introduced in the e-h alpha releases. https://lib.rs/crates/linux-embedded-hal
With
bme280 = "0.4.4"
linux-embedded-hal = "0.4.0-alpha.3"
I get:
error: failed to select a version for `embedded-hal`.
... required by package `linux-embedded-hal v0.4.0-alpha.3`
versions that meet the requirements `=1.0.0-alpha.8` are: 1.0.0-alpha.8
all possible versions conflict with previously selected packages.
previously selected package `embedded-hal v1.0.0-alpha.7`
... which is depended on by `bme280 v0.4.4`
failed to select a version for `embedded-hal` which could resolve this conflict
With one version older:
bme280 = "0.4.4"
linux-embedded-hal = "0.4.0-alpha.2"
it compiles (Delay argument is at different places, though)
I opened https://github.com/VersBinarii/bme280-rs/pull/23 to update to 1.0.0-alpha.8
The PR has been merged
Hi!
I was trying to implement the bme280 crate in a project of mine. While trying I always ran into some issues. I was then running the example from the README and the
basic.rs
example from the examples folder..I always run into the following errors:
I suppose it's an issue in the linux-embedded-hal crate but I wanted to ask for advice on how to fix this in case I'm doing something wrong...
Also, would you mind a MR removing the example from the README and replace it with a link to the examples folder? Or do you have the example in the README for docs.rs/crates.io?