]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/tests/peripherals/TMP102/TMP102.h
6 //!Library for the TI TMP102 temperature sensor.
8 The TMP102 is an I2C digital temperature sensor in a small SOT563 package, with a 0.0625C resolution and 0.5C accuracy.
13 //!Creates an instance of the class.
15 Connect module at I2C address addr using I2C port pins sda and scl.
17 \param addr <table><tr><th>A0 pin connection</th><th>Address</th></tr><tr><td>GND</td><td>0x90</td></tr><tr><td>V+</td><td>0x92</td></tr><tr><td>SDA</td><td>0x94</td></tr><tr><td>SCL</td><td>0x96</td></tr></table>
19 TMP102(PinName sda
, PinName scl
, int addr
);
26 //!Reads the current temperature.
28 Reads the temperature register of the TMP102 and converts it to a useable value.