Component: Temp / Humidity (HTS221) (Environmental): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 90: | Line 90: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ControlHeater''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ControlHeater''' | ||
|- | |- | ||
| Line 109: | Line 109: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DataAvailable''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DataAvailable''' | ||
|- | |- | ||
| Line 123: | Line 123: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | ||
|- | |- | ||
| Line 137: | Line 137: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadHumidityInt''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadHumidityInt''' | ||
|- | |- | ||
| Line 151: | Line 151: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadHumidityReal''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadHumidityReal''' | ||
|- | |- | ||
| Line 165: | Line 165: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadRegister''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadRegister''' | ||
|- | |- | ||
| Line 184: | Line 184: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTemperatureInt''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTemperatureInt''' | ||
|- | |- | ||
| Line 198: | Line 198: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTemperatureReal''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTemperatureReal''' | ||
|- | |- | ||
| Line 212: | Line 212: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteRegister''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteRegister''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Environmental |
Temp / Humidity (HTS221) component
A temperature and relative humidity sensor allowing the ambient temperature and relative humidity to be monitored digitally. Humidity Range = 0% - 100% +/- 3.5% Temperature Range = -40 - 120 Degrees C +/- 0.5 Degrees C
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Humidity_HTS221.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Humidity_HTS221.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ControlHeater
DataAvailable
Initialise
| Initialise | |
| Configures the I2C peripheral ready for communications. | |
| Return | |
ReadHumidityInt
| ReadHumidityInt | |
| Samples the humidity from the sensor and returns the relative humidity reading as a integer byte from 0 to 100 | |
| Return | |
ReadHumidityReal
| ReadHumidityReal | |
| Samples the humidity from the sensor and returns the relative humidity reading as a float from 0.0 to 100.0. | |
| Return | |
ReadRegister
| ReadRegister | |
| Reads an 8-bit value from one of the registers onboard the sensor IC. | |
| Address | |
| Return | |
ReadTemperatureInt
| ReadTemperatureInt | |
| Samples the temperature from the sensor and returns the reading in degrees C as an integer from -40 to 120. | |
| Return | |
ReadTemperatureReal
| ReadTemperatureReal | |
| Samples the temperature from the sensor and returns the reading in degrees C as a float from -40.0 to 120.0. | |
| Return | |
WriteRegister
| WriteRegister | |
| Writes a value to a register on the sensor IC. | |
| Address | |
| Data | |
| Return | |