a

Dependencies:   LM75B mbed

Files at this revision

API Documentation at this revision

Comitter:
bulmenwt
Date:
Wed Jan 28 07:51:55 2015 +0000
Commit message:
a

Changed in this revision

LM75B.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 d3c7895406b6 LM75B.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LM75B.lib	Wed Jan 28 07:51:55 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/neilt6/code/LM75B/#7ac462ba84ac
diff -r 000000000000 -r d3c7895406b6 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jan 28 07:51:55 2015 +0000
@@ -0,0 +1,44 @@
+#include "mbed.h"
+#include "LM75B.h"
+
+
+
+DigitalOut Led1(LED1);
+DigitalOut Led2(LED2);
+DigitalOut Led3(LED3);
+DigitalOut Led4(LED4);
+
+
+Serial fs(USBTX, USBRX);
+char ch;
+
+
+LM75B sensor(p28, p27) ;  /// SCL, SCD
+
+
+
+int main() {
+    
+    if (sensor.open()) {
+          fs.printf("Device detectedd!\r\n");
+          
+        while(1) { 
+        
+        Led4=1;
+        wait(0.5);
+        Led4=0;
+        wait(0.5);
+            
+        
+        fs.printf("Temperatur =%.3f\n\r",(float)sensor);
+        
+        wait(0.5);
+        }
+        
+    } else {
+        
+           fs.printf("Device not found!\r\n");   
+       
+    }
+    }
+
diff -r 000000000000 -r d3c7895406b6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jan 28 07:51:55 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89
\ No newline at end of file