2018/06/07

Dependencies:   ADT7410 mbed

Files at this revision

API Documentation at this revision

Comitter:
Tomo073
Date:
Sat Jun 09 06:14:43 2018 +0000
Commit message:
a;

Changed in this revision

ADT7410.lib Show annotated file Show diff for this revision Revisions of this file
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 000000000000 -r e92495ddfcd4 ADT7410.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ADT7410.lib	Sat Jun 09 06:14:43 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/tkreyche/code/ADT7410/#e1aee50340ec
diff -r 000000000000 -r e92495ddfcd4 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Jun 09 06:14:43 2018 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "ADT7410.h"
+
+ADT7410 Temp(p9,p10,0x90,100000);
+Serial pc(USBTX,USBRX);
+
+int main(){
+  float temp = -1;
+  
+  Temp.reset();
+  Temp.setConfig(0x03);
+  
+  while(1){
+    temp = Temp.getTemp();
+    pc.printf("Temperture=%f\r\n", temp);
+    wait(0.1);  
+  }
+     
+}
\ No newline at end of file
diff -r 000000000000 -r e92495ddfcd4 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Jun 09 06:14:43 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/aa5281ff4a02
\ No newline at end of file