dbrgn / shtcx-rs

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

Test on SHTC1 and maybe SHTW2 #11

Closed dbrgn closed 4 years ago

dbrgn commented 4 years ago

@rnestler maybe you could do this?

To build the examples:

./build-rpi.sh

Then copy target/arm-unknown-linux-musleabihf/release/examples/linux-shtc1 to the Raspberry Pi and run it.

If this works, you could update the "Tested with the following sensors" section in README.md and in the docs in src/lib.rs.

dbrgn commented 4 years ago

Once this is tested, I can release version 0.2.0.

rnestler commented 4 years ago

I tested with an SHTW2

Starting SHTC1 tests.

Device identifier: 0x7
Raw ID register:   0b11000111

Measurements:
- 24.70 °C | 33.84 %RH
- 24.76 °C | 33.90 %RH
- 24.75 °C | 33.85 %RH

Btw. The - in front of the temperature is very confusing :D

rnestler commented 4 years ago

And with the SHTC1

Starting SHTC1 tests.

Device identifier: 0x7
Raw ID register:   0b10000111

Measurements:
- 25.16 °C | 29.24 %RH
- 25.18 °C | 29.34 %RH
- 25.14 °C | 29.39 %RH
dbrgn commented 4 years ago

I also re-tested the current version on both SHTC1 and SHTC3. Works without any problems.