温度センサのプログラム(第二版)です。 PCの画面に表示します。
Dependencies: mbed
Revision 4:8d32e5cf3af7, committed 2019-11-18
- Comitter:
- MIKUNAGATA
- Date:
- Mon Nov 18 05:52:37 2019 +0000
- Parent:
- 3:694792b93731
- Commit message:
- TMP102_cansat
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 694792b93731 -r 8d32e5cf3af7 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Nov 18 05:52:37 2019 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" +#include "TMP102.h" + +TMP102 temp(p9, p10, 0x91); + +int main() { + + printf("Temp: %f\n\r", temp.read()); + + }
diff -r 694792b93731 -r 8d32e5cf3af7 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Nov 18 05:52:37 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file