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

also add licence info to readme

This commit is contained in:
Robin Appelman 2019-09-07 16:26:13 +02:00
commit 13edafcf0a

View file

@ -11,4 +11,20 @@ fn main() {
let mut mhz19 = MHZ19::open("/dev/ttyUSB0").unwrap(); let mut mhz19 = MHZ19::open("/dev/ttyUSB0").unwrap();
println!("CO₂ readout: {} ppm", mhz19.read().unwrap()); println!("CO₂ readout: {} ppm", mhz19.read().unwrap());
} }
``` ```
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.