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.
This code has been tested using a SparkFun TMP102 breakout board:
This was wired to a CoreProto and plugged into a SenseCore:
And finally installed on a SolderCore:
|Resolution (°C)||0.0625 (fixed)|
|Range (°C)||−55 to +128 (default), −55 to +150 (extended mode).|
|Communication||up to 3.4 MHz (I2C)|
|TMP102_I2C_ADDR||TMP102 8-bit I2C address|
|TMP275_I2C_ADDR||TMP275 8-bit I2C address|
|tmp102_initialize_i2c||Initialize sensor on I2C bus|
|tmp102_set_extended_mode||Select extended temperature range|