Example program for LPC General Purpose Shield using the LM75 temperature sensor

Dependencies:   LM75B mbed

Fork of app-shield-LM75B by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
MACRUM
Date:
Mon Jul 27 06:44:55 2015 +0000
Parent:
8:e0f3f151c3cc
Commit message:
Initial commit

Changed in this revision

C12832.lib 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
--- a/C12832.lib	Fri Aug 01 14:29:15 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://mbed.org/users/chris/code/C12832/#7de323fa46fe
--- a/main.cpp	Fri Aug 01 14:29:15 2014 +0000
+++ b/main.cpp	Mon Jul 27 06:44:55 2015 +0000
@@ -1,17 +1,14 @@
 #include "mbed.h"
 #include "LM75B.h"
-#include "C12832.h"
 
 // Using Arduino pin notation
-C12832 lcd(D11, D13, D12, D7, D10);
-LM75B sensor(D14,D15);
+LM75B sensor(D14,D15, LM75B::ADDRESS_4);
+Serial pc(USBTX, USBRX);
 
 int main ()
 {
     while (1) {
-        lcd.cls();
-        lcd.locate(0,3);
-        lcd.printf("Temp = %.1f\n", sensor.temp());
+        pc.printf("Temp = %.1f\n", sensor.temp());
         wait(1.0);
     }
 }
--- a/mbed.bld	Fri Aug 01 14:29:15 2014 +0000
+++ b/mbed.bld	Mon Jul 27 06:44:55 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/6213f644d804
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/bad568076d81
\ No newline at end of file