Library for ADT7410 I2C temperature sensor. Use this instead of TMP102 when you need to measure temperatures lower than -40 degrees C. The device is guaranteed to work at -55 C but will actually read lower temps. See http://mbed.org/users/tkreyche/notebook/adt7140-i2c-temperature-sensor/ for more info.
Dependents: BLE_ADT7410_TMP102_Sample BLE_HTM_HRM1017 BLENano_SimpleTemplate_temp_170802 BLENano_SimpleTemplate_temp_170813 ... more
Diff: ADT7410.h
- Revision:
- 3:834388db599d
- Parent:
- 2:88af6eff8783
- Child:
- 4:3ef9329a8ea7
--- a/ADT7410.h Tue Feb 01 19:05:30 2011 +0000 +++ b/ADT7410.h Tue Feb 01 19:10:49 2011 +0000 @@ -25,7 +25,19 @@ #ifndef ADT7410_H #define ADT7410_H +#include "mbed.h" +// sensor register addresses +// only a partial list, don't use them all +#define TEMP_REG_ADDR 0x00 +#define CONFIG_REG_ADDR 0x03 +#define RESET 0x2F + +// configuration register values +// only a partial list, don't use them all +#define ONE_SPS_MODE 0x40 + +//Library for the ADT7410 temperature sensor /** @@ -64,21 +76,6 @@ - -#include "mbed.h" - -// sensor register addresses -// only a partial list, don't use them all -#define TEMP_REG_ADDR 0x00 -#define CONFIG_REG_ADDR 0x03 -#define RESET 0x2F - -// configuration register values -// only a partial list, don't use them all -#define ONE_SPS_MODE 0x40 - -//Library for the ADT7410 temperature sensor - class ADT7410 { public: