Commit Graph

13 Commits

Author SHA1 Message Date
s-hadinger b89909991c
`i2c_enabled` refactored as array (#22387) 2024-10-30 22:23:13 +01:00
Theo Arends 9238ee73d6 Add ESP8266 experimental support for second I2C bus 2024-09-19 14:47:18 +02:00
Theo Arends d0d075a1b4 Refactored I2C drivers SHT3x and iAQ 2024-09-19 11:11:08 +02:00
Jan-David Förster 4101ad7303
xsns_14_sht3x.ino - data types adjusted, code size reduced (#21868)
* code size, data type improvements

* Change temp calculation to int
2024-07-30 22:23:53 +02:00
Jan-David Förster 9878a96c0b
Update SHT3X driver to bring it into line with other sensors, e.g., HYT..., and avoid unnecessary I²C reads (#21816)
* Avoid unnecessary I²C reads, bring code in line with other sensors.

* Update xsns_14_sht3x.ino

fix copyright again
2024-07-22 13:58:17 +02:00
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