#driver #sensirion #scd30 #scd40 #scd41

no-std libscd

Rust drivers for various SCD devices such as scd30 and scd4x CO2 sensors

5 releases (3 breaking)

new 0.3.0 Apr 16, 2024
0.2.1 Apr 11, 2024
0.2.0 Apr 11, 2024
0.1.0 Apr 10, 2024
0.0.0 Mar 28, 2024

#214 in Embedded development

Download history 90/week @ 2024-03-22 55/week @ 2024-03-29 227/week @ 2024-04-05

372 downloads per month

MIT/Apache

84KB
1K SLoC

Lib SCD

License Version Downloads Build

LibSCD is s Rust driver implementation for SCD30, SCD40 and SCD41 sensors using the embedded-hal and embedded-hal-async interfaces.

Usage

Add the crate as a dependency in Cargo.toml

[dependencies.libscd]
version = "0.3"
features = []

The support for each sensor and sync/async mode is controlled by a feature:

Feature Description
sync Enables the blocking driver implementation for the selected sensors
async Enables the async driver implementation for the selected sensors
scd30 Enables the driver for the SCD30 sensor
scd40 Enables the driver for the SCD40 sensor
scd41 Enables the driver for the SCD41 sensor
defmt Derive defmt::Format for the error type

License

The project is dual licensed under MIT or APACHE-2.0

Dependencies

~185KB