USBMIDI Hello World

Dependencies:   mbed USBDevice

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Fri Nov 11 12:18:05 2011 +0000
Parent:
2:4505f7d7196e
Child:
4:09aa8e699fba
Commit message:

Changed in this revision

USBDevice.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
--- a/USBDevice.lib	Fri Nov 04 11:58:57 2011 +0000
+++ b/USBDevice.lib	Fri Nov 11 12:18:05 2011 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/samux/code/USBDevice/#9ad036adda6a
+http://mbed.org/users/samux/code/USBDevice/#8d9f9651e3c0
--- a/main.cpp	Fri Nov 04 11:58:57 2011 +0000
+++ b/main.cpp	Fri Nov 11 12:18:05 2011 +0000
@@ -1,17 +1,17 @@
-// Hello World example for the USBMIDI library
-
-#include "mbed.h"
-#include "USBMIDI.h"
-
-USBMIDI midi;
-
-int main() {             
-    while (1) {    
-        for(int i=48; i<83; i++) {     // send some messages!
-            midi.write(MIDIMessage::NoteOn(i));
-            wait(0.25);
-            midi.write(MIDIMessage::NoteOff(i));
-            wait(0.5);
-        }
-    }
-}
+// Hello World example for the USBMIDI library
+
+#include "mbed.h"
+#include "USBMIDI.h"
+
+USBMIDI midi;
+
+int main() {             
+    while (1) {    
+        for(int i=48; i<83; i++) {     // send some messages!
+            midi.write(MIDIMessage::NoteOn(i));
+            wait(0.25);
+            midi.write(MIDIMessage::NoteOff(i));
+            wait(0.5);
+        }
+    }
+}