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.
Diff: beep.cpp
- Revision:
- 4:ae81aeeed069
- Parent:
- 3:690740ab3394
- Child:
- 5:ad66d64c3d33
--- a/beep.cpp Sat Nov 03 15:46:49 2018 +0000
+++ b/beep.cpp Thu Nov 15 07:28:39 2018 +0000
@@ -11,7 +11,7 @@
wait(0.1);
buzzer.period_us(1000000/So5);
wait(0.1);
- buzzer.write(0);
+ buzzer.write(1);
}
void beepAfterset()
@@ -23,8 +23,7 @@
wait(0.1);
buzzer.period_us(1000000/So5);
wait(0.1);
- buzzer.write(0);
- wait(0.3);
+ buzzer.write(1);
buzzer.write(0.5);
buzzer.period_us(1000000/Re5);
wait(0.1);
@@ -32,8 +31,7 @@
wait(0.1);
buzzer.period_us(1000000/La5);
wait(0.1);
- buzzer.write(0);
- wait(0.3);
+ buzzer.write(1);
buzzer.write(0.5);
buzzer.period_us(1000000/Mi5);
wait(0.1);
@@ -41,7 +39,7 @@
wait(0.1);
buzzer.period_us(1000000/Ti5);
wait(0.2);
- buzzer.write(0);
+ buzzer.write(1);
}
void beepEnd()