温度センサのプログラム(第二版)です。 PCの画面に表示します。

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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
--- /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());
+    
+    }
--- /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