Difference between revisions of "Component: Digital Temperature (EBM004) (EBM Modules)"
From Flowcode Help
Jump to navigationJump to searchLine 76: | Line 76: | ||
{{Fcfile|EBM004 - Test Program.fcfx|EBM004 Example}} | {{Fcfile|EBM004 - Test Program.fcfx|EBM004 Example}} | ||
+ | |||
+ | |||
Line 82: | Line 84: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===ReadInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 100: | Line 103: | ||
+ | ===ReadFloat=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 113: | Line 117: | ||
+ | ===WriteByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 136: | Line 141: | ||
+ | ===WriteInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 159: | Line 165: | ||
+ | ===ReadByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 177: | Line 184: | ||
+ | ===Uninit=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 190: | Line 198: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:49, 3 February 2023
Author | Matrix TSL |
Version | 2.0 |
Category | EBM Modules |
Contents
Digital Temperature component
A digital temperature sensor based around the LM75B chip.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBM004v1.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBM004v1.fcfx
Detailed description
No detailed description exists yet for this component
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.
Macro reference
ReadInt
![]() |
ReadInt |
Read double byte data from register at address | |
![]() |
address |
![]() |
Return |
ReadFloat
![]() |
ReadFloat |
Reads the temperature value as a float | |
![]() |
Return |
WriteByte
![]() |
WriteByte |
![]() |
address |
![]() |
data |
![]() |
Return |
WriteInt
![]() |
WriteInt |
![]() |
address |
![]() |
data |
![]() |
Return |
ReadByte
![]() |
ReadByte |
Read a single byte at a specific address from the chip's internal memory. | |
![]() |
address |
![]() |
Return |
Uninit
![]() |
Uninit |
Uninitialise and release resources | |
![]() |
Return |
Initialise
![]() |
Initialise |
Initialise to default of 11 bit resolution | |
![]() |
Return |