/mics-vz-89te

MICS-VZ-89TE sensor driver written in rust

Primary LanguageRustOtherNOASSERTION

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