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.
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);
}
}