kirthiga annamalai
/
LM
gaya
Fork of temp by
Revision 1:460ecfe930b7, committed 2015-01-14
- 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 |
--- 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