Example of how to create an mbed library

Dependents:   2645_I2C_TMP102 Year2SensorProject Ranger EL15PJT_Ranger ... more

Files at this revision

API Documentation at this revision

Comitter:
eencae
Date:
Mon Feb 15 11:18:04 2016 +0000
Parent:
0:8818842a3573
Commit message:
- Changed units in print statement to Celsius; - Corrected bug in TLOW/THIGH register addresses

Changed in this revision

TMP102.h Show annotated file Show diff for this revision Revisions of this file
diff -r 8818842a3573 -r 1b601445b336 TMP102.h
--- a/TMP102.h	Fri Feb 05 17:24:06 2016 +0000
+++ b/TMP102.h	Mon Feb 15 11:18:04 2016 +0000
@@ -26,8 +26,8 @@
 // register addresses
 #define TEMP_REG    0x00
 #define CONFIG_REG  0x01
-#define THIGH_REG   0x02
-#define TLOW_REG    0x03
+#define TLOW_REG   0x02
+#define THIGH_REG    0x03
 
 // we need to include the mbed header (this will also have a header guard to prevent it being included more than once)
 #include "mbed.h"