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.
Fork of app-board-RGB by
Revision 2:cfd337edff08, committed 2012-10-25
- Comitter:
- chris
- Date:
- Thu Oct 25 12:25:00 2012 +0000
- Parent:
- 1:0a08d26b011a
- Commit message:
- Added an outer loop so that the sweep can be replayed
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 16 13:26:23 2012 +0000
+++ b/main.cpp Thu Oct 25 12:25:00 2012 +0000
@@ -5,11 +5,13 @@
int main()
{
- for (float i=2000.0; i<10000.0; i+=100) {
- spkr.period(1.0/i);
- spkr=0.5;
- wait(0.1);
+ while (1) {
+ for (float i=2000.0; i<10000.0; i+=100) {
+ spkr.period(1.0/i);
+ spkr=0.5;
+ wait(0.1);
+ }
+ spkr=0.0;
+ while(!fire) {}
}
- spkr=0.0;
- while(!fire) {}
}
\ No newline at end of file
