Tim Ambrose
/
MusicTest
4 songs: rain, william, sun, and circus
Diff: Buzzer.h
- Revision:
- 0:c02f01feda7b
diff -r 000000000000 -r c02f01feda7b Buzzer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Buzzer.h Sat May 09 21:29:00 2015 +0000 @@ -0,0 +1,8 @@ +#include "mbed.h" + +#define BUZZER_PIN D2 /* sig pin of the buzzer */ +#define RANGE_OFFSET 4 + +void playTone(int tone, int duration); +void playNote(char note, int range, int duration); +