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:99bd88e2b2e7, committed 2014-10-31
- Comitter:
- ThatcherC
- Date:
- Fri Oct 31 19:13:12 2014 +0000
- Parent:
- 3:5d221e8f4012
- Commit message:
- Added more comments;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Aug 13 21:25:49 2014 +0000
+++ b/main.cpp Fri Oct 31 19:13:12 2014 +0000
@@ -41,7 +41,7 @@
}
};
-Watchdog w;
+Watchdog w; //used to reset the microcontroller when/if it halts
void flip1(){
if(first){
@@ -75,14 +75,14 @@
led2 = 1;
}
-void reset1(){
+void reset1(){ //used to reset interrupt 1 if too much time passes
t.stop();
t.reset();
first = true;
int1.fall(&flip1);
}
-void reset2(){
+void reset2(){ //used to reset interrupt 1 if too much time passes
t.stop();
t.reset();
first = true;