Driver for TI TMP007 thermopile. Reads object temperature, internal temperature, and sensor voltage.

Dependencies:   UglyBottlev1

Files at this revision

API Documentation at this revision

Comitter:
tomo21
Date:
Wed Oct 29 18:41:04 2014 +0000
Parent:
0:86a2044abd50
Commit message:
TMP007 Driver;

Changed in this revision

tmp007.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 86a2044abd50 -r b11c53492ce5 tmp007.cpp
--- a/tmp007.cpp	Wed Oct 29 18:39:32 2014 +0000
+++ b/tmp007.cpp	Wed Oct 29 18:41:04 2014 +0000
@@ -33,7 +33,7 @@
     */
     temp_write[0] = TMP007_Conf;
     temp_write[2] = 0x40;   //Mode On, Alert, TC, 16 samples
-    temp_write[1] = 0x19;
+    temp_write[1] = 0x19;   //check order of these (endianness)
     i2c.write(TMP007_ADDR, temp_write, 3, 0);
     
     while (1) {