Expand description
LibSCD is a crate providing both synchronous and asynchronous driver implementations for SCD30 and SCD4x CO2 sensors using the embedded-hal and embedded-hal-async interfaces
§Feature Flags
defmt
: Derivedefmt::Format
for the error typesync
: Enable the blocking driver implementation for the selected sensorsasync
: Enable the async driver implementation for the selected sensorsscd30
: Enable the driver for the SCD30 sensorscd4x
: Enable the driver for the SCD4x family of sensorsscd41
: Enable additional features of the SCD4x driver that available only on SCD41 sensors
Modules§
- asynchronous
- Asynchronous driver implementations using embedded-hal-async. This
module needs to be enabled via the
async
feature flag - error
- Error type used by the library
- measurement
- Shared measurement type used by the various sensors
- synchronous
- Synchronous (blocking) driver implementations using embedded-hal. This
module needs to be enabled via the
sync
feature flag
Enums§
- Sensor
Variant - SCD4x sensor variant.