Crates.io | mics-vz-89te |
lib.rs | mics-vz-89te |
version | 0.2.1 |
source | src |
created_at | 2022-04-20 09:44:34.858921 |
updated_at | 2022-05-19 10:15:34.07996 |
description | MICS-VZ-89TE driver implementation |
homepage | |
repository | https://github.com/teamplayer3/mics-vz-89te.git |
max_upload_size | |
id | 570889 |
size | 29,950 |
This driver can be used to read CO2 and VOC measurements of the MICS-VZ-89TE sensor.
Example shows how to read CO2 and VOC from sensor.
let mut delay = ...; // delay struct from board
let i2c = ...; // I2C bus to use
let mut device = MicsVz89Te::new(i2c);
let measurements = device.read_measurements(&mut delay).unwrap();
let co2 = measurements.co2;
let voc = measurements.voc;
let i2c = device.release(); // destruct driver to use bus with other drivers