temp

Dependencies:   mbed

Fork of LM61 by kirthiga annamalai

Files at this revision

API Documentation at this revision

Comitter:
kirthigaannamalai
Date:
Wed Jan 14 06:05:53 2015 +0000
Parent:
0:e035f4506cd7
Commit message:
slowdown blink rate

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e035f4506cd7 -r 460ecfe930b7 main.cpp
--- a/main.cpp	Fri Aug 17 15:48:22 2012 +0000
+++ b/main.cpp	Wed Jan 14 06:05:53 2015 +0000
@@ -8,10 +8,8 @@
 //also setting unused analog input pins to digital outputs reduces A/D noise a bit
 //see http://mbed.org/users/chris/notebook/Getting-best-ADC-performance/
 DigitalOut P16(p16);
-DigitalOut P17(p17);
-DigitalOut P18(p18);
-DigitalOut P19(p19);
-DigitalOut P20(p20);
+DigitalOut myled(LED1);
+DigitalOut myled2(LED2);
 
 int main()
 {
@@ -25,5 +23,17 @@
         //print current temp
         printf("%5.2F C %5.2F F \n\r", tempC, tempF);
         wait(.5);
-    }
+        if(P16>29)
+        {
+        myled=1;
+        myled2=0;
+        wait(1.0);
+        }
+        else
+        {
+        myled=0;
+        myled2=1;
+        wait(1.0);
+        }
+        }
 }
\ No newline at end of file