mics-vz-89te

Crates.iomics-vz-89te
lib.rsmics-vz-89te
version0.2.1
sourcesrc
created_at2022-04-20 09:44:34.858921
updated_at2022-05-19 10:15:34.07996
descriptionMICS-VZ-89TE driver implementation
homepage
repositoryhttps://github.com/teamplayer3/mics-vz-89te.git
max_upload_size
id570889
size29,950
Alexander Hübener (teamplayer3)

documentation

README

MICS-VZ-89TE Driver

This driver can be used to read CO2 and VOC measurements of the MICS-VZ-89TE sensor.

Build Status License Crates.io Documentation

Example usage

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
Commit count: 54

cargo fmt