Component: Digital Temperature (Inputs: Sensors)
Author | Matrix TSL |
Version | 1.1 (Release) |
Category | Inputs: Sensors |
Contents
Digital Temperature component
A digital temperature sensor based around the LM75B chip.
Examples
This example simply reads the value from the digital temperature sensor and outputs the value to an LCD as a temperature in degrees C. EBM004 Example
Downloadable macro reference
ReadInt
Read double byte data from register at address
Parameters
- BYTE address
Return value
ReadFloat
Reads the temperature value as a float
Parameters
- This macro has no parameters
Return value
WriteByte
No additional information
Parameters
- BYTE address
- BYTE data
Return value
WriteInt
No additional information
Parameters
- BYTE address
- UINT data
Return value
ReadByte
Read a single byte at a specific address from the chip's internal memory.
Parameters
- BYTE address
Return value
Initialise
Initialise to default of 11 bit resolution
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Channel
This property is of type Fixed list of ints and can be referenced with the variable name CHANNEL.
No additional information
SDA
This property is of type Single digital pin and can be referenced with the variable name SDA.
No additional information
SCL
This property is of type Single digital pin and can be referenced with the variable name SCL.
No additional information
Label
This property is of type Line of text and can be referenced with the variable name label.
A text label to help you identify the component on the panel.
Min. Temp.
This property is of type Floating point and can be referenced with the variable name min_temp.
Minimum termperature that can be set or displayed on the thermometer slider.
Max. Temp.
This property is of type Floating point and can be referenced with the variable name max_temp.
Maximum termperature that can be set or displayed on the thermometer slider.
Scale divisions
This property is of type Unsigned integer and can be referenced with the variable name scale_divisions.
Number of numbered divisions shown on the thermometer scale.
I2C Data
This property is of type Fixed list of ints and can be referenced with the variable name number_base.
Set whether the I2C data is displayed as decimal or hexadecimal numbers.