Component: Temperature (TMP117) (Environmental)
From Flowcode Help
Jump to navigationJump to search
Author | Matrix TSL |
Version | 1.0 |
Category | Environmental |
Contents
Temperature (TMP117) component
The TMP117 provides high accuracy temperature monitoring via a digital I2C interface.
Detailed description
No detailed description exists yet for this component
Examples
A basic example which moves an object on the panel. When the object is in range of the sensor the sensor output goes high, otherwise the sensor output goes low.
PhotoTransistorDemo
Macro reference
Initialise
![]() |
Initialise |
Sets up the I2C ready for operation and initialises the sensor with the default settings. Returns 1 if the device is correctly identified. | |
![]() |
Return |
ReadRegister
![]() |
ReadRegister |
![]() |
Address |
![]() |
Return |
ReadTemperature
![]() |
ReadTemperature |
Reads the temperature as a floating point value in Celcius. | |
![]() |
Return |
ReadTemperatureF
![]() |
ReadTemperatureF |
Reads the temperature as a floating point value in Fahrenheit | |
![]() |
Return |
SetMode
![]() |
SetMode |
Sets the mode of the sensor and therefore the amount of power consumed by the sensor. | |
![]() |
Mode |
0=Shutdown, 3=Triggered, 7=Continuous | |
![]() |
Return |
SetTemperatureOffset
![]() |
SetTemperatureOffset |
Allows an offset to be written to offset the output temperature | |
![]() |
Offset |
Temperature offset in degrees C | |
![]() |
Return |
WriteRegister
![]() |
WriteRegister |
![]() |
Address |
![]() |
Value |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Temperature_TMP117.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Temperature_TMP117.fcfx