You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/SHT2x/README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Arduino library for the SHT2x, HTU2x and Si70xx temperature and humidity sensors
17
17
## Description
18
18
19
19
This library is not tested extensively yet.
20
-
It works for the Si7021 incl. the asynchronous interface.
20
+
It works for the Si7021 including the asynchronous interface.
21
21
It should work for SHT20, SHT21 and SHT25 but these are not tested yet.
22
22
The SHT2x family of sensors should work up to 400 KHz I2C.
23
23
@@ -102,8 +102,8 @@ These functions are used for synchronous (blocking) reads of temperature and hum
102
102
-**bool read()**: Reads both temperature and humidity from the sensor. This is a blocking call; program execution will pause until the readings are complete.
103
103
-**float getTemperature()**: Returns the temperature in degrees Celsius (°C) based on the latest raw data acquired by `read()`.
104
104
-**float getHumidity()**: Returns the relative humidity in percent (%) based on the latest raw data acquired by `read()`.
105
-
-**uint16_t getRawTemperature()**: Returns the raw, uncalibrated 16-bit integer value for temperature directly from the sensor, as acquired by `read()`.
106
-
-**uint16_t getRawHumidity()**: Returns the raw, uncalibrated 16-bit integer value for humidity directly from the sensor, as acquired by `read()`.
105
+
-**uint16_t getRawTemperature()**: Returns the raw, not calibrated 16-bit integer value for temperature directly from the sensor, as acquired by `read()`.
106
+
-**uint16_t getRawHumidity()**: Returns the raw, not calibrated 16-bit integer value for humidity directly from the sensor, as acquired by `read()`.
107
107
108
108
**Note on `read()` and data retrieval:**
109
109
The `getTemperature()` and `getHumidity()` functions recalculate values from raw data on every call. If performance is critical, cache these values in your code after a `read()` instead of calling them repeatedly. Raw values are useful for minimizing storage or communication overhead.
@@ -138,11 +138,12 @@ The asynchronous interface allows you to initiate a temperature or humidity read
138
138
-**`uint32_t lastRequest()`**: Returns the timestamp (in milliseconds, based on `millis()`) of when the last asynchronous request (`requestTemperature()` or `requestHumidity()`) was made. This can be useful for implementing timeouts for asynchronous operations.
139
139
-**`uint8_t getRequestType()`**: Returns the type of the currently pending or last completed asynchronous request. This helps in determining what kind of data was requested or is ready. The possible return values are:
0 commit comments