Dixie Land for m3pi buzzer

Dependencies:   m3pimaze mbed

Committer:
jalle1714
Date:
Sat Apr 06 15:37:15 2013 +0000
Revision:
2:0859e96823ce
Parent:
0:c4f7f74c472a
Added notes for self

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jalle1714 0:c4f7f74c472a 1 #include "mbed.h"
jalle1714 0:c4f7f74c472a 2 #include "m3pimaze.h"
jalle1714 0:c4f7f74c472a 3 m3pi m3pi(p23,p9,p10);
jalle1714 0:c4f7f74c472a 4
jalle1714 0:c4f7f74c472a 5 int main()
jalle1714 0:c4f7f74c472a 6 {
jalle1714 0:c4f7f74c472a 7
jalle1714 2:0859e96823ce 8 // 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
jalle1714 0:c4f7f74c472a 9 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'};
jalle1714 2:0859e96823ce 10 //the number of characters in the array
jalle1714 0:c4f7f74c472a 11 int numb=49;
jalle1714 0:c4f7f74c472a 12 m3pi.playtune(dixie,numb);
jalle1714 0:c4f7f74c472a 13
jalle1714 0:c4f7f74c472a 14
jalle1714 0:c4f7f74c472a 15
jalle1714 0:c4f7f74c472a 16 }