Read temperature sensor and output to LCD

Dependencies:   C12832_lcd LM75B mbed

Fork of HelloWorld by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
bbuchana
Date:
Thu Jan 16 20:43:23 2014 +0000
Parent:
1:03c191369089
Commit message:
1st commit to repository

Changed in this revision

C12832_lcd.lib Show annotated file Show diff for this revision Revisions of this file
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 03c191369089 -r a5462ec6f58d C12832_lcd.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832_lcd.lib	Thu Jan 16 20:43:23 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/dreschpe/code/C12832_lcd/#8f86576007d6
diff -r 03c191369089 -r a5462ec6f58d LM75B.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LM75B.lib	Thu Jan 16 20:43:23 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/LM75B/#6a70c9303bbe
diff -r 03c191369089 -r a5462ec6f58d main.cpp
--- a/main.cpp	Sun Jan 01 20:57:57 2012 +0000
+++ b/main.cpp	Thu Jan 16 20:43:23 2014 +0000
@@ -1,12 +1,22 @@
 #include "mbed.h"
+#include "LM75B.h"
+#include "C12832_lcd.h"
 
 DigitalOut myled(LED1);
+LM75B temperature(p28, p27);
+C12832_LCD  lcd;
+
 
 int main() {
+    int i=0;
     while(1) {
         myled = 1;
         wait(0.2);
         myled = 0;
         wait(0.2);
+        printf("Hello, Sam %d\n", i++);
+        
+        lcd.locate(0,0);
+        lcd.printf("temperature : %3.2f F\n", (temperature.read()*9/5) +32);
     }
 }
diff -r 03c191369089 -r a5462ec6f58d mbed.bld
--- a/mbed.bld	Sun Jan 01 20:57:57 2012 +0000
+++ b/mbed.bld	Thu Jan 16 20:43:23 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/078e4b97a13e
+http://mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43
\ No newline at end of file