change tone sounds by altering the waveforms
Dependencies: mbed
Fork of 5_songs by
Diff: main.cpp
- Revision:
- 4:02dc2ab8eabb
- Parent:
- 3:c04186a77ede
- Child:
- 5:7003c9f6d633
--- a/main.cpp Thu May 12 17:37:43 2016 +0000 +++ b/main.cpp Mon May 16 18:34:03 2016 +0000 @@ -1,6 +1,5 @@ #include "mbed.h" // this tells us to load mbed related functions #include "tones.h" // list of all the tones and their frequencies -#include "rtos.h" // using the rtos for timing features. Just want to block the play_song function until it is time to play the next note. PwmOut buzzer(D3); // our buzzer is a PWM output (pulse-width modulation) @@ -20,6 +19,7 @@ static void play_song(int notes_left, int* melody, int* duration) { // YOUR CODE HERE + }