scd4x

Crates.ioscd4x
lib.rsscd4x
version0.3.0
sourcesrc
created_at2021-03-21 21:01:54.510912
updated_at2024-02-18 18:12:54.001291
descriptionRust driver for the Sensirion SCD4x series. Carbon Dioxide / Temperature / Humidity sensors.
homepage
repositoryhttps://github.com/hauju/scd4x-rs.git
max_upload_size
id371844
size62,847
(hauju)

documentation

https://docs.rs/scd4x

README

Sensirion I2C SCD4x Driver

This library provides an embedded no_std driver for the Sensirion SCD4x series. This driver was built using embedded-hal traits. The implementaion are based on embedded-i2c-scd4x and sgpc3-rs.

Sensirion SCD4x

The SCD4x is a miniature carbon dioxide sensor. It also measure temperature and relative humidity.

Further information: Datasheet CO2 Sensor SCD4x

Usage

Run scd4x-util to read the serial number and the measurement output.

cargo run --features="util"

See an example using linux-embedded-hal in examples/linux.rs.

cargo run --example linux

Development Status

The driver is in an early development state. It allows you to:

  • Get the serial number.
  • Read the measurement output.

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 27

cargo fmt