pms700x

Crates.iopms700x
lib.rspms700x
version0.1.1
sourcesrc
created_at2020-08-16 04:24:16.649995
updated_at2020-08-16 12:26:52.12676
descriptionEmbeded-hal implementation for the PMS700x family of sensors
homepage
repositoryhttps://github.com/icewind1991/pms700x
max_upload_size
id277123
size29,758
Robin Appelman (icewind1991)

documentation

https://docs.rs/pms700x

README

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;
Commit count: 11

cargo fmt