mirror of
https://codeberg.org/icewind/pms700x.git
synced 2026-06-03 10:04:13 +02:00
Embeded-hal implementation for the PMS700x family of sensors
- Rust 100%
| examples | ||
| src | ||
| .gitignore | ||
| Cargo.toml | ||
| LICENSE-APACHE | ||
| LICENSE-MIT | ||
| p564008-p564008-PMS7003_V2.5.pdf | ||
| README.md | ||
PMS700x
Embeded-hal implementation for the PMS700x family of sensors
Example
let serial = get_embed_hal_serial_from_somewhere();
let mut pms = Pms700X::new(serial).into_active()?;
let result = nb::block!(pms.read())?;
let concentration_10 = result.pm10;
let concentration_25 = result.pm25;
let concentration_100 = result.pm100;