Driver for TMP102 (and compatible) temperature sensors.
All correct at time of writing, but as always, manufacturers love to move things around on their website.
http://www.ti.com/product/tmp102
http://www.ti.com/lit/ds/symlink/tmp102.pdf
This code has been tested using a SparkFun TMP102 breakout board:
http://www.sparkfun.com/products/9418
This was wired to a CoreProto and plugged into a SenseCore:
http://soldercore.com/products/sensecore/
And finally installed on a SolderCore:
http://soldercore.com/products/soldercore/
Parameter | Supported settings |
Resolution (°C) | 0.0625 (fixed) |
Range (°C) | −55 to +128 (default), −55 to +150 (extended mode). |
Communication | up to 3.4 MHz (I2C) |
Macros | |
TMP102_I2C_ADDR | TMP102 8-bit I2C address |
TMP275_I2C_ADDR | TMP275 8-bit I2C address |
Functions | |
tmp102_initialize_i2c | Initialize sensor on I2C bus |
tmp102_set_extended_mode | Select extended temperature range |