This uses the published version of the library that can be imported independently

Dependencies:   mbed TMP102

main.cpp

Committer:
chris
Date:
2012-07-21
Revision:
1:9b49379e8bf6
Parent:
0:89f745be63a8

File content as of revision 1:9b49379e8bf6:

#include "mbed.h"
#include "TMP102.h"

TMP102 temperature(p9, p10, 0x90); //A0 pin is connected to ground

int main()
{
  while(1) {
    printf("Temperature: %f\n", temperature.read());
    wait(1.0);
  }
}