kirthiga annamalai
/
temp61
mbed_tt fork
Fork of LM35 by
Revision 1:f7f1edaa8d90, committed 2015-01-14
- Comitter:
- kirthigaannamalai
- Date:
- Wed Jan 14 07:28:45 2015 +0000
- Parent:
- 0:e035f4506cd7
- Commit message:
- new blinking pattern
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 07:28:45 2015 +0000 @@ -8,10 +8,9 @@ //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 +24,17 @@ //print current temp printf("%5.2F C %5.2F F \n\r", tempC, tempF); wait(.5); + if(tempF=75) + { + myled = 1; + myled2=0; + wait(0.5); + } + else + { + myled = 0; + myled2=1; + wait(0.5); + } } } \ No newline at end of file