MODIFIED TO THREAD WAIT
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 |
diff -r 4b841d62e529 -r 1c54db5d1e5e pwm_tone.cpp --- 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); } /**