Dependents: 00_yotsuba 10_motor-test 00_yotsuba 200_yotsuba_21 ... more
Revision 1:ed6c6a4e6101, committed 2021-03-04
- Comitter:
- piroro4560
- Date:
- Thu Mar 04 11:57:33 2021 +0000
- Parent:
- 0:dbb0f89dc4cc
- Commit message:
- beep
Changed in this revision
beep.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r dbb0f89dc4cc -r ed6c6a4e6101 beep.cpp --- a/beep.cpp Mon Jan 27 09:09:33 2020 +0000 +++ b/beep.cpp Thu Mar 04 11:57:33 2021 +0000 @@ -47,7 +47,7 @@ void Beep::beep(float freq, float time) { _pwm.period(1.0/freq); - _pwm = 0.1; // 50% duty cycle - beep on + _pwm = 0.4; // 50% duty cycle - beep on toff.attach(callback(this,&Beep::nobeep), time); // time to off }