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.
Dependencies: mbed
Revision 53:004a9674e922, committed 2019-03-14
- Comitter:
- mfwic
- Date:
- Thu Mar 14 03:22:23 2019 +0000
- Parent:
- 52:2b3b194144da
- Commit message:
- Changed slowClk.attach to slowClk.attach_us, also fastClk.
Changed in this revision
| inc/clocks.h | Show annotated file Show diff for this revision Revisions of this file |
| src/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/inc/clocks.h Thu Mar 14 00:21:35 2019 +0000 +++ b/inc/clocks.h Thu Mar 14 03:22:23 2019 +0000 @@ -32,6 +32,9 @@ #include "globals.h" #include "mbed.h" +const float CLK_SLOW = 330; +const float CLK_FAST = 10; + void initOut(void); void flipSlow(void); void flipFast(void);
--- a/src/main.cpp Thu Mar 14 00:21:35 2019 +0000
+++ b/src/main.cpp Thu Mar 14 03:22:23 2019 +0000
@@ -114,8 +114,8 @@
initOut();
- slowClk.attach(&slowFlip, 2.5);
- fastClk.attach(&fastFlip, 1.0);
+ slowClk.attach_us(&slowFlip, CLK_SLOW);
+ fastClk.attach_us(&fastFlip, CLK_FAST);
ILR_enable.rise(&ILR);
running = FALSE;
@@ -204,6 +204,7 @@
updateMasterControls(my12);
}
}
+ numFast = 36;
}
}//end while(1)
}//end void main(void)
\ No newline at end of file