TMP102 temperature sensor test using LPC824.
Dependencies: test_TMP102 mbed
main.cpp
- Committer:
- yasubumi
- Date:
- 2017-11-26
- Revision:
- 5:11f0da55b0fd
- Parent:
- 3:600dea808e48
File content as of revision 5:11f0da55b0fd:
#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); } }