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.
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 | 
--- 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
 }