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: kiokuryoku_game escapeFromYou junirobo_sample001 ROBOX_Sample_IRcon ... more
Diff: beep_sound.cpp
- Revision:
- 2:259899b723ab
- Parent:
- 0:c9832831c73f
- Child:
- 3:86238dba1529
--- a/beep_sound.cpp Sat Jun 04 13:38:10 2016 +0000
+++ b/beep_sound.cpp Sat Jun 04 17:50:58 2016 +0000
@@ -112,6 +112,18 @@
wait(0.1);
}
}
+void beep_sound::beep_readyGo(int nTimes)
+{
+ for (int i = 0; i < nTimes; i++) {
+ beep_sound::onpu(1,0,0.5);
+ wait(0.5);
+ beep_sound::onpu(1,0,0.5);
+ wait(0.5);
+ beep_sound::onpu(1,0,0.5);
+ wait(0.5);
+ beep_sound::onpu(2,0,1);
+ }
+}
void beep_sound::beep_encount(int nTimes)
{
for (int i = 0; i < nTimes; i++) {