Component: Digital Temperature (EBM004) (EBM Modules): Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
| Line 34: | Line 36: | ||
==Examples== | ==Examples== | ||
Revision as of 14:40, 16 January 2023
| Author | Matrix TSL |
| Version | 2.0 |
| Category | EBM Modules |
Digital Temperature component
A digital temperature sensor based around the LM75B chip.
Component Source Code
Please click here for the component source code: 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.
Downloadable macro reference
| ReadInt | |
| Read double byte data from register at address | |
| address | |
| Return | |
| ReadFloat | |
| Reads the temperature value as a float | |
| Return | |
| WriteByte | |
| address | |
| data | |
| Return | |
| WriteInt | |
| address | |
| data | |
| Return | |
| ReadByte | |
| Read a single byte at a specific address from the chip's internal memory. | |
| address | |
| Return | |
| Uninit | |
| Uninitialise and release resources | |
| Return | |
| Initialise | |
| Initialise to default of 11 bit resolution | |
| Return | |