Example of how to create an mbed library
Dependents: 2645_I2C_TMP102 Year2SensorProject Ranger EL15PJT_Ranger ... more
Diff: TMP102.h
- Revision:
- 1:1b601445b336
- Parent:
- 0:8818842a3573
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"