![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
4 songs: rain, william, sun, and circus
Buzzer.h@1:3595fce69880, 2015-05-09 (annotated)
- Committer:
- Luminoscity
- Date:
- Sat May 09 21:32:39 2015 +0000
- Revision:
- 1:3595fce69880
- Parent:
- 0:c02f01feda7b
Sped up circus
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Luminoscity | 0:c02f01feda7b | 1 | #include "mbed.h" |
Luminoscity | 0:c02f01feda7b | 2 | |
Luminoscity | 0:c02f01feda7b | 3 | #define BUZZER_PIN D2 /* sig pin of the buzzer */ |
Luminoscity | 0:c02f01feda7b | 4 | #define RANGE_OFFSET 4 |
Luminoscity | 0:c02f01feda7b | 5 | |
Luminoscity | 0:c02f01feda7b | 6 | void playTone(int tone, int duration); |
Luminoscity | 0:c02f01feda7b | 7 | void playNote(char note, int range, int duration); |
Luminoscity | 0:c02f01feda7b | 8 |