ENS160 driver
Implementation of an ENS160 sensor driver written in rust. This sensor can measure TVOC and ECO2. Implementation is inspired by the driver implementation by dfrobots written in python.
For more information about the sensor here.
Usage
To use this crate in a no-std environment, add it to your Cargo.toml as follows:
[]
= "0.6"
= false
Example
let i2c = ...; // I2C bus to use
let mut device = new;
device.reset.unwrap;
sleep
device.operational.unwrap;
sleep
loop
let i2c = device.release; // destruct driver to use bus with other drivers