88
99# SHT31
1010
11- Arduino library for the SHT31 temperature and humidity sensor
11+ Arduino library for the SHT31 temperature and humidity sensor.
1212
1313Relates to the SHT85 library - https://github.com/RobTillaart/SHT85
1414
@@ -37,10 +37,10 @@ https://github.com/hawesg/SHT31D_Particle_Photon_ClosedCube
3737#### Base interface
3838
3939- ** SHT31()** constructor.
40- - ** bool begin(address, dataPin, clockPin )** begin function for ESP8266 & ESP32;
40+ - ** bool begin(uint8_taddress, uint8_tdataPin, uint8_tclockPin )** begin function for ESP8266 & ESP32;
4141returns false if device address is incorrect or device cannot be reset.
42- - ** bool begin(address)** for single I2C bus platforms, e.g UNO.
43- - ** bool begin(address, TwoWire \* wire)** for platforms with multiple I2C buses.
42+ - ** bool begin(uint8_t address)** for single I2C bus platforms, e.g UNO.
43+ - ** bool begin(uint8_t address, TwoWire \* wire)** for platforms with multiple I2C buses.
4444- ** bool read(bool fast = true)** blocks 4 (fast) or 15 (slow) milliseconds + actual read + math.
4545Does read both the temperature and humidity.
4646- ** bool isConnected()** check sensor is reachable over I2C. Returns false if not connected.
@@ -62,7 +62,7 @@ you've performed a new reading.
6262- ** int getError()** returns last set error flag and clear it.
6363Be sure to clear the error flag by calling ** getError()** before calling any command as the error flag could be from a previous command.
6464
65- | Error | Symbolic | Description
65+ | Error | Symbolic | Description |
6666| :-----:| :--------------------------| :----------------------------|
6767| 0x00 | SHT31_OK | no error |
6868| 0x81 | SHT31_ERR_WRITECMD | I2C write failed |
@@ -71,7 +71,7 @@ Be sure to clear the error flag by calling **getError()** before calling any com
7171| 0x84 | SHT31_ERR_NOT_CONNECT | Could not connect |
7272| 0x85 | SHT31_ERR_CRC_TEMP | CRC error in temperature |
7373| 0x86 | SHT31_ERR_CRC_HUM | CRC error in humidity |
74- | 0x87 | SHT31_ERR_CRC_STATUS | CRC error in statusfield |
74+ | 0x87 | SHT31_ERR_CRC_STATUS | CRC error in status field |
7575| 0x88 | SHT31_ERR_HEATER_COOLDOWN | Heater need to cool down |
7676| 0x88 | SHT31_ERR_HEATER_ON | Could not switch on heater |
7777
@@ -130,8 +130,8 @@ Returns false if reading fails or in case of a CRC failure.
130130| 4 | System reset detected | 0 | no reset since last ‘clear status register’ command
131131| | | 1 | reset detected (hard or soft reset command or supply fail) - default
132132| 3-2 | Reserved | 00 |
133- | 1 | Command status | 0 | last cmd executed successfully
134- | | | 1 | last cmd not processed. Invalid or failed checksum
133+ | 1 | Command status | 0 | last command executed successfully
134+ | | | 1 | last command not processed. Invalid or failed checksum
135135| 0 | Write data checksum status | 0 | checksum of last write correct
136136| | | 1 | checksum of last write transfer failed
137137
@@ -151,3 +151,9 @@ See examples.
151151- investigate command ART (auto sampling at 4 Hz)
152152- investigate command BREAK (stop auto sampling)
153153- software I2C experiments?
154+ - separate releaseNotes.md
155+
156+
157+ #### Wont
158+
159+
0 commit comments