dbrgn / shtcx-rs

Platform agnostic Rust driver for the Sensirion SHTCx temperature/humidity sensors.
Apache License 2.0
13 stars 4 forks source link

Implement support for embedded-hal 1.0 #36

Closed dbrgn closed 4 months ago

dbrgn commented 4 months ago

Replaces #34 and #35. Fixes #31.

dbrgn commented 4 months ago

Tested successfully with an SHTC1:

$ cargo build --example linux-shtc1 && sudo target/debug/examples/linux-shtc1
Starting SHTC1 tests.

Soft reset...

Device identifier: 0x07
Raw ID register:   0b0000000011000111

Normal mode measurements:
  23.56 °C | 50.04 %RH
  23.58 °C | 50.02 %RH
  23.56 °C | 50.03 %RH

Low power mode measurements:
  23.82 °C | 50.46 %RH
  23.97 °C | 50.48 %RH
  23.77 °C | 50.48 %RH