My porting of USBHostMIDI library Example.

Dependencies:   F401RE-USBHost mbed

Revision:
2:0ed13d8db901
Parent:
1:a03b21ba2647
--- a/main.cpp	Wed Sep 17 13:52:20 2014 +0000
+++ b/main.cpp	Thu Sep 18 10:52:13 2014 +0000
@@ -7,7 +7,8 @@
  
 void noteOn(unsigned char channel, unsigned char note, unsigned char velocity) {
     led = 1;
-//    printf("note on channel: %d, note: %d, velocity: %d\r\n", channel, note, velocity);
+    //printf("note on channel: %d, note: %d, velocity: %d\r\n", channel, note, velocity);
+    printf("on\n");
     midiOut.putc(0x90); // status:ch0,noteon
     midiOut.putc(note); // data:noteNo
     midiOut.putc(velocity);// data: velocity
@@ -15,7 +16,8 @@
 
 void noteOff(unsigned char channel, unsigned char note, unsigned char velocity) {
     led = 0;
-//    printf("note off channel: %d, note: %d, velocity: %d\r\n", channel, note, velocity);
+    //printf("note off channel: %d, note: %d, velocity: %d\r\n", channel, note, velocity);
+    printf("off\n");
     midiOut.putc(0x80); // status:ch0,noteoff
     midiOut.putc(note); // data:noteNo
     midiOut.putc(velocity);// data: velocity
@@ -72,5 +74,6 @@
             // polling USB task
             USBHost::poll();
         }
+        printf("end\n");
     }
 }
\ No newline at end of file