5 unstable releases
0.3.0 | Feb 12, 2024 |
---|---|
0.2.0 | Aug 2, 2023 |
0.1.2 | Nov 15, 2022 |
0.1.1 | Oct 4, 2022 |
0.1.0 | Oct 4, 2022 |
#461 in Embedded development
42 downloads per month
18KB
369 lines
SCD30 modbus driver
Implementation of an SCD30 sensor driver using the modbus protocol written in rust. This driver is written async/await style. Currently the smol runtime is supported.
For more information about the sensor here.
Example
let serial = ...; // serial bus to use
let mut driver = Scd30::new(serial);
driver.set_measurement_interval(Duration::from_secs(15)).await.unwrap();
driver.start_measuring().await.unwrap();
let measurements = driver.read().await.unwrap().unwrap();
Dependencies
~4–14MB
~147K SLoC