![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Dixie Land for m3pi buzzer
main.cpp@0:c4f7f74c472a, 2013-04-06 (annotated)
- Committer:
- jalle1714
- Date:
- Sat Apr 06 04:56:42 2013 +0000
- Revision:
- 0:c4f7f74c472a
- Child:
- 2:0859e96823ce
Play DixieLand on m3pi piezo buzzer
Who changed what in which revision?
User | Revision | Line number | New 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 | 0:c4f7f74c472a | 8 | |
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 | 0:c4f7f74c472a | 10 | int numb=49; |
jalle1714 | 0:c4f7f74c472a | 11 | m3pi.playtune(dixie,numb); |
jalle1714 | 0:c4f7f74c472a | 12 | |
jalle1714 | 0:c4f7f74c472a | 13 | |
jalle1714 | 0:c4f7f74c472a | 14 | |
jalle1714 | 0:c4f7f74c472a | 15 | } |