Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: blinky_max32630fthr
TMP102 Class Reference
Library for the TI TMP102 temperature sensor. More...
#include <TMP102.h>
Public Member Functions | |
| TMP102 (PinName sda, PinName scl, int addr) | |
| Creates an instance of the class. | |
| ~TMP102 () | |
| float | read () |
| Reads the current temperature. | |
Detailed Description
Library for the TI TMP102 temperature sensor.
The TMP102 is an I2C digital temperature sensor in a small SOT563 package, with a 0.0625C resolution and 0.5C accuracy.
Definition at line 10 of file TMP102.h.
Constructor & Destructor Documentation
| TMP102 | ( | PinName | sda, |
| PinName | scl, | ||
| int | addr | ||
| ) |
Creates an instance of the class.
Connect module at I2C address addr using I2C port pins sda and scl. TMP102
- Parameters:
-
addr A0 pin connection Address GND 0x90 V+ 0x92 SDA 0x94 SCL 0x96
Definition at line 5 of file TMP102.cpp.
| ~TMP102 | ( | ) |
Destroys instance.
Definition at line 8 of file TMP102.cpp.
Member Function Documentation
| float read | ( | void | ) |
Reads the current temperature.
Reads the temperature register of the TMP102 and converts it to a useable value.
Definition at line 10 of file TMP102.cpp.
Generated on Tue Jul 12 2022 14:21:37 by
1.7.2
