#i2c-driver #sensor #i2c #co2 #humidity-sensor #temperature-humidity

no-std scd30-interface

An I2C driver for the SCD30 sensor in Rust

1 stable release

new 1.0.0 Nov 18, 2024

#1739 in Embedded development

MIT/Apache

60KB
1.5K SLoC

Rust SCD30 Driver

A Rust I2C driver for Sensirion's SCD30 CO2, temperature and humidity sensor module. This driver is based on the embedded-hal traits.

Features:

  • Full implementation of the SCD30's functionality:
    • Read out CO2, temperature and relative humidity measurement.
    • Configure altitude, temperature and ambient pressure compensation.
    • Configure automatic self-recalibration and forced recalibration value.
    • Read out data status, configuration and firmware version.
    • Execute soft reset.
  • Easy to integrate into projects using embedded-hal crates.
  • Optional defmt support.

License

Licensed under either of

SPDX-License-Identifier: Apache-2.0 OR MIT

Dependencies

~0.4–1MB
~20K SLoC