It's not my library, i just want to publish my program.
Fork of PWM_Tone_Library by
Revision 2:dd4ed6c28c87, committed 2016-12-13
- Comitter:
- Lapita
- Date:
- Tue Dec 13 16:21:19 2016 +0000
- Parent:
- 0:d06af372d384
- Child:
- 3:b3ee09f3ff8f
- Commit message:
- change 0.5 to 1, just it's a test
Changed in this revision
pwm_tone.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/pwm_tone.cpp Fri Jul 24 05:01:45 2015 +0000 +++ b/pwm_tone.cpp Tue Dec 13 16:21:19 2016 +0000 @@ -20,7 +20,7 @@ delay = beat*63; name.period_us(period); - name.write(0.50f); // 50% duty cycle + name.write(1.0f); // 50% duty cycle wait_ms(delay); // 1 beat name.period_us(0); // Sound off } @@ -38,7 +38,7 @@ delay = beat*63; name.period_us(period); - name.write(0.50f); // 50% duty cycle + name.write(1.0f); // 50% duty cycle wait_ms(delay); }