Difference between revisions of "Component: Temp / Humidity (HTS221) (Environmental)"
From Flowcode Help
Jump to navigationJump to searchLine 73: | Line 73: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 79: | Line 81: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===ReadHumidityInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 92: | Line 95: | ||
+ | ===DataAvailable=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 105: | Line 109: | ||
+ | ===ReadTemperatureInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 118: | Line 123: | ||
+ | ===ControlHeater=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 136: | Line 142: | ||
+ | ===ReadHumidityReal=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 149: | Line 156: | ||
+ | ===ReadRegister=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 167: | Line 175: | ||
+ | ===ReadTemperatureReal=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 180: | Line 189: | ||
+ | ===WriteRegister=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 203: | Line 213: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:50, 3 February 2023
Author | Matrix TSL |
Version | 1.0 |
Category | Environmental |
Contents
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
ReadHumidityInt
![]() |
ReadHumidityInt |
Samples the humidity from the sensor and returns the relative humidity reading as a integer byte from 0 to 100 | |
![]() |
Return |
DataAvailable
ReadTemperatureInt
![]() |
ReadTemperatureInt |
Samples the temperature from the sensor and returns the reading in degrees C as an integer from -40 to 120. | |
![]() |
Return |
ControlHeater
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 |
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 |
Initialise
![]() |
Initialise |
Configures the I2C peripheral ready for communications. | |
![]() |
Return |