@@ -37,18 +37,21 @@ https://github.com/hawesg/SHT31D_Particle_Photon_ClosedCube
3737#### Base interface
3838
3939- ** SHT31()** constructor.
40- - ** bool begin(uint8_taddress, uint8_tdataPin, uint8_tclockPin )** begin function for ESP8266 & ESP32;
40+ - ** bool begin(uint8_t address, uint8_t dataPin, uint8_t clockPin )** begin function for ESP8266 & ESP32;
4141returns false if device address is incorrect or device cannot be reset.
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.
42+ - ** bool begin(uint8_t dataPin, uint8_t clockPin)** same as above. With default SHT_DEFAULT_ADDRESS.
43+ - ** bool begin(uint8_t address, TwoWire \* wire = &Wire)** for platforms with multiple I2C buses.
44+ - ** bool begin(TwoWire \* wire = &Wire)** same as above.
45+ With default SHT_DEFAULT_ADDRESS.
4446- ** bool read(bool fast = true)** blocks 4 (fast) or 15 (slow) milliseconds + actual read + math.
4547Does read both the temperature and humidity.
4648- ** bool isConnected()** check sensor is reachable over I2C. Returns false if not connected.
4749- ** uint16_t readStatus()** details see datasheet and ** Status fields** below.
4850- ** uint32_t lastRead()** in milliSeconds since start of program.
49- - ** bool reset(bool hard = false)** resets the sensor, soft reset by default. Returns false if fails.
50- - ** float getHumidity()** computes the relative humidity in % based off the latest raw reading, and returns it.
51- - ** float getTemperature()** computes the temperature in °C based off the latest raw reading, and returns it.
51+ - ** bool reset(bool hard = false)** resets the sensor, soft reset by default. Returns false if it fails.
52+ - ** float getHumidity()** computes the relative humidity in % based on the latest raw reading, and returns it.
53+ - ** float getTemperature()** computes the temperature in °C based on the latest raw reading, and returns it.
54+ - ** float getFahrenheit()** computes the temperature in °F based on the latest raw reading, and returns it..
5255- ** uint16_t getRawHumidity()** returns the raw two-byte representation of humidity directly from the sensor.
5356- ** uint16_t getRawTemperature()** returns the raw two-byte representation of temperature directly from the sensor.
5457
@@ -144,16 +147,6 @@ See examples.
144147
145148## Future
146149
147- - merge with other SHT sensors if possible
148- - direct Fahrenheit formula ?
149- - improve error handling / status. (all code paths)
150- - verify working with ESP32
151- - investigate command ART (auto sampling at 4 Hz)
152- - investigate command BREAK (stop auto sampling)
153- - software I2C experiments?
154- - separate releaseNotes.md
155-
156-
157- #### Wont
150+ - keep in sync with SHT85 library
158151
159152
0 commit comments