benoit poulain
/
Exemple_Blinky
cours 1
Diff: main.cpp
- Revision:
- 3:7990c80e953c
- Parent:
- 2:4505f7d7196e
- Child:
- 8:c6ec6b9f6a55
diff -r 4505f7d7196e -r 7990c80e953c main.cpp --- 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); + } + } +}