MODIFIED TO THREAD WAIT
Fork of PWM_Tone_Library by
Diff: pwm_tone.cpp
- Revision:
- 2:1c54db5d1e5e
- Parent:
- 0:d06af372d384
--- 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); } /**