Crates.io | pms700x |
lib.rs | pms700x |
version | 0.1.1 |
source | src |
created_at | 2020-08-16 04:24:16.649995 |
updated_at | 2020-08-16 12:26:52.12676 |
description | Embeded-hal implementation for the PMS700x family of sensors |
homepage | |
repository | https://github.com/icewind1991/pms700x |
max_upload_size | |
id | 277123 |
size | 29,758 |
Embeded-hal implementation for the PMS700x family of sensors
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;