Advanced Micro Processor Experiments SEM-6 Marwadi Education Foundation Rajkot
Fork of MEFGI by
Revision 1:d18350d02dd3, committed 2016-04-13
- Comitter:
- rx5
- Date:
- Wed Apr 13 05:10:39 2016 +0000
- Parent:
- 0:c7aaecd69812
- Commit message:
- EXP4_MEFGI
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c7aaecd69812 -r d18350d02dd3 main.cpp --- a/main.cpp Tue Apr 12 06:08:15 2016 +0000 +++ b/main.cpp Wed Apr 13 05:10:39 2016 +0000 @@ -14,15 +14,14 @@ wait(3.0); // wait 3 second to show startup message while(1) // loop forever { - lcd.cls(); // Clear LCD - lcd.locate(0,0); // cursor on Col=0, Raw=0 - lcd.printf("Int i = %d",i); // print value of i in first line of LCD - lcd.locate(0,1); // cursor on Col=0, Raw=1 - lcd.printf("Float f = %0.2f",f); // print value of f with resolution of two decimal point in second line of LCD - i=i+1; // update i - f=f+0.01; // update f - wait(1.0); // Wait for 1 second - + lcd.cls(); // Clear LCD + lcd.locate(0,0); // cursor on Col=0, Raw=0 + lcd.printf("Int i = %d",i); // print value of i in first line of LCD + lcd.locate(0,1); // cursor on Col=0, Raw=1 + lcd.printf("Float f = %0.2f",f); // print value of f with resolution of two decimal point in second line of LCD + i=i+1; // update i + f=f+0.01; // update f + wait(1.0); // Wait for 1 second } }