Haley Clafton
/
HAIL
"Hail to the Victors"
Revision 0:2cb43c50829b, committed 2017-05-23
- Comitter:
- hclafton
- Date:
- Tue May 23 14:33:43 2017 +0000
- Commit message:
- "Hail to the Victors" in case it comes in handy
Changed in this revision
diff -r 000000000000 -r 2cb43c50829b m3pi_ng.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m3pi_ng.lib Tue May 23 14:33:43 2017 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/ngoldin/code/m3pi_ng/#5589eef1f879
diff -r 000000000000 -r 2cb43c50829b main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue May 23 14:33:43 2017 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" +#include "m3pi_ng.h" + +DigitalOut myled(LED1); + +m3pi pi; + +int main() { + + char* song1 = "T240 L1 >c L2 a-b->ca-b->c L1 >d- L2 b->c>d-b->c>d- L1 >e- L2 >f. L8 r>c L2 >c>d-a- L2 b-"; // 48 beats (4/4 time) + char* song2 = "T240 L1 >c L2 b-a- L1 >e-. L2 r L1 >c L2 a-b->ca-b->c L1 >d-"; //36 beats (4/4 time) + char* song3 = "T240 L2 b->c>d-b->c>d- L1 >e- L2 >f. L8 r>c L2 >c>d-a- L2 b->c>e->c. L4 b- L1 a-."; // 42 beats (4/4 time) + + pi.playtune(song1, 89); + wait(12); + pi.playtune(song2, 60); + wait(9); + pi.playtune(song3, 81); + wait(10.5); +}
diff -r 000000000000 -r 2cb43c50829b mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue May 23 14:33:43 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/4eea097334d6 \ No newline at end of file