nucleo 103r LM75A

Dependencies:   LM75B mbed

Files at this revision

API Documentation at this revision

Comitter:
anywill
Date:
Mon Nov 20 01:52:09 2017 +0000
Commit message:
lm75a addr 0x00,;

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LM75B.lib	Mon Nov 20 01:52:09 2017 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/chris/code/LM75B/#6a70c9303bbe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Nov 20 01:52:09 2017 +0000
@@ -0,0 +1,16 @@
+//Nucleo F103RB+LM75A,
+//LM75A A0,A1,A2 connect to Gnd ,so the addr of this lm75a is 0x0000
+//Os NC
+//
+#include "mbed.h"
+#include "LM75B.h"
+ 
+LM75B tmp(D14,D15);//D14,D15 =p28,p27
+Serial pc(USBTX,USBRX);
+int main ()
+{
+    while (1) {
+        pc.printf("%.2f\n",tmp.read());
+        wait(1.0);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Nov 20 01:52:09 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3
\ No newline at end of file