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 PWM_Tone_Library by
Revision 2:1c54db5d1e5e, committed 2016-10-21
- Comitter:
- cyberjoey
- Date:
- Fri Oct 21 20:18:20 2016 +0000
- Parent:
- 1:4b841d62e529
- Commit message:
- BUZZAH BITCHES
Changed in this revision
| pwm_tone.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/pwm_tone.cpp Fri Oct 21 04:01:30 2016 +0000
+++ b/pwm_tone.cpp Fri Oct 21 20:18:20 2016 +0000
@@ -21,7 +21,7 @@
delay = beat*63;
name.period_us(period);
name.write(0.50f); // 50% duty cycle
- wait_ms(delay); // 1 beat
+ Thread::wait(delay); // 1 beat
name.period_us(0); // Sound off
}
@@ -39,7 +39,7 @@
delay = beat*63;
name.period_us(period);
name.write(0.50f); // 50% duty cycle
- wait_ms(delay);
+ Thread::wait(delay);
}
/**
