James Allen
/
m3pi_test_music
Dixie Land for m3pi buzzer
main.cpp
- Committer:
- jalle1714
- Date:
- 2013-04-06
- Revision:
- 2:0859e96823ce
- Parent:
- 0:c4f7f74c472a
File content as of revision 2:0859e96823ce:
#include "mbed.h" #include "m3pimaze.h" m3pi m3pi(p23,p9,p10); int main() { // V=volume max is 15::O5=octave5::G16=G16th note::R24=rest24th note...a rest is needed between any two note that are the same char dixie[]={'V','1','5','O','5','G','1','6','E','1','6','C','8','R','2','4','C','8','R','2','4','C','1','6','D','1','6','E','1','6','F','1','6','G','8','R','2','4','G','8','R','2','4','G','8','E','1','6'}; //the number of characters in the array int numb=49; m3pi.playtune(dixie,numb); }