TMP102 temperature sensor test using LPC824.

Dependencies:   test_TMP102 mbed

main.cpp

Committer:
yasubumi
Date:
2017-11-26
Revision:
3:600dea808e48
Parent:
2:40c813b1d6a3

File content as of revision 3:600dea808e48:

#include "mbed.h"
#include "test_TMP102.h"

// constractor test1
//test_TMP102 tmp102(dp4,dp5, 0x90);

// constractor test2
I2C i2c(dp4,dp5);
test_TMP102 tmp102(i2c);

int main()
{
    float t;

    while(1) {
        t=tmp102;
        printf("Temp: %f\n\r", t);
        wait(1.0);
    }
}