Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 4:7bb8fce3cdd6, committed 2016-05-14
- Comitter:
- NoamVH
- Date:
- Sat May 14 13:58:05 2016 +0000
- Parent:
- 3:d57fdbf06ac8
- Commit message:
- Commenting reshaped for A4 page
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r d57fdbf06ac8 -r 7bb8fce3cdd6 main.cpp --- a/main.cpp Sat Feb 27 14:11:59 2016 +0000 +++ b/main.cpp Sat May 14 13:58:05 2016 +0000 @@ -8,14 +8,18 @@ for(;;) { // Loop start if(TFC_PUSH_BUTTON_0_PRESSED) //If button 0 is pressed while(TFC_PUSH_BUTTON_0_PRESSED) { - TFC_SetBatteryLED_Level(i); //Hold the battery leds on value i as long as the button is pressed + TFC_SetBatteryLED_Level(i); + //Hold the battery leds on value i for + //as long as the button is pressed } else //If button 0 is NOT pressed TFC_SetBatteryLED_Level(i); wait(0.5); if(i>4) - i = 0; //Keep setting the to value i and increment i, if i goes above 4, reset the LEDS + i = 0; + //Keep setting the to value i and increment i, + //if i goes above 4, reset the LEDS i++; } //Loop end } //Main end