Expand description
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.
§embedded-hal-async
Support
This crate has optional support for the [embedded-hal-async
] crate. The
[Scd4xAsync
] type provides a driver for a SCD4x sensor which uses
[embedded-hal-async
]’s asynchronous versions of the I2c
and DelayNs
traits, rather than the blocking versions from [embedded-hal
].
The [embedded-hal-async
] support is feature flagged, so that users who
don’t need the asynchronous versions of these traits don’t have to depend on
embedded-hal-async
. To use it, enable the embedded-hal-async
feature
flag in your Cargo.toml
:
[dependencies]
scd4x = { version = "0.3", features = ["embedded-hal-async"] }
Modules§
Structs§
- Scd4x
- SCD4X sensor instance. Use related methods to take measurements.
Enums§
- Error
- SCD4X errors