#sensor #flow #embedded-hal #embedded-hal-driver

no-std fs1027-dg-hal

FS1027-DG Gas Flow Sensor Module driver for no_std embedded-hal

4 releases

0.2.0 Nov 5, 2022
0.1.2 May 13, 2022
0.1.1 May 12, 2022
0.1.0 May 12, 2022

#749 in Embedded development

MIT/Apache

10KB
81 lines

FS1027-DG-hal

crates.io docs.rs dependency status

FS1027-DG Gas Flow Sensor Module driver for no_std embedded-hal

Overview

The crate uses the common embeded-hal crate to provided a generic implementation for multiple HALs.

It implements value verification as well as conversion into liters/min.

Example

The esp32-hal example creates the I²C master and tries to read sensor data on pin 1 and 2. Build and run via:

cargo espflash --release /dev/ttyUSB0 && espmonitor /dev/ttyUSB0

License

Licensed under either of

at your option.

Contributing

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.

Dependencies

~71KB