1
0
Fork 0
mirror of https://github.com/icewind1991/mhz19-rs synced 2026-06-03 09:34:12 +02:00

basic readme

This commit is contained in:
Robin Appelman 2019-09-05 19:38:00 +02:00
commit a2469d84d7

14
README.md Normal file
View file

@ -0,0 +1,14 @@
# MH-Z19-rs
Accessing MH-Z19 CO₂ sensor over serial bus using rust
## Usage
```rust
use mhz19::MHZ19;
fn main() {
let mut mhz19 = MHZ19::open("/dev/ttyUSB0").unwrap();
println("CO₂ readout: {} ppm", mhz19.read().unwrap());
}
```