Commit Graph

8 Commits

Author SHA1 Message Date
Jan-David Förster 27083e3664
Bugfix: multiple SHT4x sensors at the same bus, support for SHT40-CD1B (#21755)
* fixes multiple SHT3X sensor type bug

Important when multiple sensors are present at the same bus. Prior to this fix, multiple SHT3X sensor were detected, but not SHTC3 and SHT4X!

* Update xsns_14_sht3x.ino

Extends I²C address range to include SHT40-CD1B sensors with address 0x46.

* Update I2CDEVICES.md

* Show bus when multiple sensors at different busses

* Make bus number less intrusive

Only show bus number if two sensors or more are active at more than one bus.

* variable renamed

* cleanup

* fix typo

* fix another typo

* Harmonization and saving code size for ESP8266

Harmonization with xsns_09_bmp driver, saving code size for ESP8266

* fix string for webserver

* Display address only if more than one sensor present.
2024-07-10 18:55:51 +02:00
Theo Arends 7238d857e9 Add SHT3x I2C bus2 support 2023-10-20 14:52:21 +02:00
Theo Arends c1ea8953cb Refactor uint8_t to uint32_t 2022-11-11 10:44:56 +01:00
Stefan Tibus 0ddcaa8fe7 Implement correct conversion of humidity for SHT4x
The conversion of humidity from raw value is different for the SHT4x
series. The fix implements the conversion as per datasheet. Also, the
raw value is now cast to float before division.
2022-06-05 01:44:26 +02:00
Stefan Tibus 37e1bc6e7d Fix calling ConvertTemp and ConvertHumidity twice
ConvertTemp and ConvertHumidity are called in Sht3xShow, no need to call
them in Sht3xRead as well.
2022-06-05 01:44:15 +02:00
Stefan Tibus 7295bdb549 Fix detection of SHT40
A SHT40 was not detected by the previous scheme of scanning the I2C
addresses and for each address probing for SHT3x and SHT4x immediately
one after the other. The SHT40 is succesfully detected when first
probing all adresses for SHT3x and then scanning all adresses again for
SHT4x. The fix implements this scheme. It was tested with SHTC3 and
SHT40 sensors.
2022-06-05 01:40:39 +02:00
Theo Arends dae1b32995 Add support for Sensirion SHT4X using define USE_SHT3X (#15349) 2022-06-04 16:52:52 +02:00
Theo Arends c08561f67c Bump version to v11.1.0.4
- Restructure tasmota
2022-06-02 14:17:39 +02:00