My porting of USBHostMIDI library Example.

Dependencies:   F401RE-USBHost mbed

Files at this revision

API Documentation at this revision

Comitter:
hsgw
Date:
Thu Sep 18 10:52:13 2014 +0000
Parent:
1:a03b21ba2647
Commit message:
update F401RE-USBHost

Changed in this revision

F401RE-USBHost.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/F401RE-USBHost.lib	Wed Sep 17 13:52:20 2014 +0000
+++ b/F401RE-USBHost.lib	Thu Sep 18 10:52:13 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/hsgw/code/F401RE-USBHost/#81d8c59d1070
+http://mbed.org/users/hsgw/code/F401RE-USBHost/#5281ea9f6e68
--- 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
--- a/mbed.bld	Wed Sep 17 13:52:20 2014 +0000
+++ b/mbed.bld	Thu Sep 18 10:52:13 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/024bf7f99721
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae
\ No newline at end of file