der Roboter
/
RidingDirty
Riding dirty
Revision 0:e83567ef4990, committed 2014-06-03
- Comitter:
- mmpeter
- Date:
- Tue Jun 03 11:36:29 2014 +0000
- Commit message:
- Riding Dirty
Changed in this revision
diff -r 000000000000 -r e83567ef4990 m3pi_ng.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m3pi_ng.lib Tue Jun 03 11:36:29 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/ngoldin/code/m3pi_ng/#da9ef3d5c3fe
diff -r 000000000000 -r e83567ef4990 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jun 03 11:36:29 2014 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" +#include "m3pi_ng.h" +#include "cmath" +#include "iostream" + +m3pi thinggy; +int x=0; +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 dirty[]={'V','1','5','O','4','R','8','A','#','8','R','2','4','A','#','8','R','2','4','A','#','8','O','5','F','4','O','4','A','#','4', + 'R','4','A','#','8','O','5','F','4','F','#','4', + }; + //the number of characters in the array + int numb=strlen(dirty); + thinggy.playtune(dirty,numb); + x++; + } + + \ No newline at end of file
diff -r 000000000000 -r e83567ef4990 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Jun 03 11:36:29 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/0b3ab51c8877 \ No newline at end of file