Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for embedded-hal 1.0.0 #2

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sen0177"
description = "Read air quality data from the SEN0177 and PMSA003I sensors"
version = "0.5.1-alpha.1"
version = "0.6.0-alpha.1"
authors = ["Brian J. Tarricone <[email protected]>"]
homepage = "https://github.com/kelnos/sen0177-rs"
repository = "https://github.com/kelnos/sen0177-rs"
Expand All @@ -20,10 +20,10 @@ default = []
std = []

[dependencies]
embedded-hal = "=1.0.0-rc.1"
embedded-hal-nb = "=1.0.0-rc.1"
embedded-hal = "1"
embedded-hal-nb = "1"

[dev-dependencies]
anyhow = "1"
linux-embedded-hal = { git = "https://github.com/rust-embedded/linux-embedded-hal", rev = "27daf71e8ee22ff2b33fca5972a47dd139de69e2" }
linux-embedded-hal = { git = "https://github.com/kelnos/linux-embedded-hal", branch = "embedded-hal-1" }
serial = "0.4"
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ Include the following in your `Cargo.toml` file:

```toml
[dependencies]
sen0177 = "0.5"
sen0177 = "0.6"
```

If you are in a `no_std` environment, you may depend on this crate like so:

```toml
[dependencies]
sen0177 = { version = "0.5", default-features = false }
sen0177 = { version = "0.6", default-features = false }
```

## Usage

See the `examples/` directory.

Note that `linux-embedded-hal` does not currently have a release
supporting the 1.0.0 release candidates of `embedded-hal`, so the
Linux example has to pull `linux-embedded-hal` from GitHub.
Note that `linux-embedded-hal` does not (as of this writing) have a
release supporting the stable 1.x series of `embedded-hal`, so the Linux
example has to pull `linux-embedded-hal` from GitHub.

Note that the serial device occasionally returns bad data. If you
receive [`SensorError::BadMagic`] or [`SensorError::ChecksumMismatch`]
Expand Down
Loading