Use a buzz (piezo) to produce tone

Dependencies:   mbed

Fork of Arch_Play_Music by Yihui Xiong

Files at this revision

API Documentation at this revision

Comitter:
yihui
Date:
Wed Aug 20 07:29:37 2014 +0000
Parent:
0:343592047b5a
Commit message:
update

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 343592047b5a -r 0e53bbdcc678 main.cpp
--- a/main.cpp	Mon Apr 28 06:13:29 2014 +0000
+++ b/main.cpp	Wed Aug 20 07:29:37 2014 +0000
@@ -3,7 +3,7 @@
 
 DigitalOut myled(LED1);
 
-PwmOut buzzer(P1_14);
+PwmOut buzzer(P1_14);  // Buzzer connected to UART Grove connector (PWM output)
 
 int frequency[] = {NOTE_C4, NOTE_G3,NOTE_G3, NOTE_A3, NOTE_G3, 1, NOTE_B3, NOTE_C4};
 int beat[] = {4, 8, 8, 4,4,4,4,4 };
diff -r 343592047b5a -r 0e53bbdcc678 mbed.bld
--- a/mbed.bld	Mon Apr 28 06:13:29 2014 +0000
+++ b/mbed.bld	Wed Aug 20 07:29:37 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013
\ No newline at end of file