Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 2645_I2C_TMP102 Year2SensorProject Ranger EL15PJT_Ranger ... more
Revision 1:1b601445b336, committed 2016-02-15
- 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 |
--- 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"