Rostam Siamak / Mbed 2 deprecated HeaterControl

Dependencies:   C12832_lcd LM75B mbed

Files at this revision

API Documentation at this revision

Comitter:
rostam
Date:
Sun Dec 29 16:58:06 2013 +0000
Parent:
0:b818a72ebb42
Commit message:
Comments added

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Dec 29 16:42:37 2013 +0000
+++ b/main.cpp	Sun Dec 29 16:58:06 2013 +0000
@@ -1,3 +1,6 @@
+//heater control using LM75B Temp sensor and Pot1 as inputs and LED1 and 2 as too hot and too cold tempreture indicators. 
+//LED 4 is used to indicate heater on/off
+
 #include "mbed.h"
 #include "C12832_lcd.h"
 #include "LM75B.h"
@@ -21,9 +24,9 @@
     while(1) 
     {
 
-    therm_set=therm.read() *45.0f;
+    therm_set=therm.read() *45.0f;// Reading and caliberating the thermostat setting 
     room_temp=temp.read();
-    disp.cls();
+    disp.cls(); // clear the screen
     disp.locate(0,0);
     disp.printf("Thermostat setting: %.2fc", therm_set);
     disp.locate(0,10);