Crate pmsa003i

Crate pmsa003i 

Source
Expand description

§Plantower PMSA003I Driver for Embedded HAL

Driver for the PMSA003I particulate sensor using embedded-hal.

Works on no_std and supports both async and blocking operation.

See Pmsa003i for an example of how to use the library.

§Feature flags

  • async — enables async operation
  • defmt — derives defmt::Format for types and errors to help with logging
  • aqi — enables calculation of AQI values using the aqi crate

Structs§

AirQuality
Calucated AQI and human-readable level
Pmsa003i
Driver for the PMSA003I sensor
Reading
A reading from the sensor

Enums§

AirQualityError
Error type for air quality calculations
AirQualityLevel
Represents the human-friendly interpretation of the AQI
Error