Gemphet8 ; 8-polyphonic synthesizer control application

Dependencies:   MIDI REnc button mbed

Revision:
8:7d67a193582f
Parent:
7:2398a1835eae
--- a/main.cpp	Mon Aug 11 09:18:44 2014 +0000
+++ b/main.cpp	Mon Aug 11 09:38:22 2014 +0000
@@ -9,7 +9,7 @@
 
 #include "mbed.h"
 #include "button.h"
-#include "REnc.h"
+//#include "REnc.h"
 #include "MIDI.h"
 #include "I2CEEprom.h"
 
@@ -76,10 +76,11 @@
 
 int main()
 {
-
     midi_init();
 
     while(1) {
+        midi.read();
+
         myled = 1;
         wait(0.2);
         myled = 0;
@@ -96,6 +97,8 @@
     midi.setHandleProgramChange(&midi_pc);
     midi.setHandlePitchBend(&midi_pbend);
     midi.setHandleSystemReset(&midi_sysreset);
+
+    midi.begin();
 }
 
 /// @brief  Reset all MIDI controller
@@ -129,7 +132,8 @@
 }
 
 /// @brief  MIDI note structure allocate function
-static MN_p allocN(void) {
+static MN_p allocN(void)
+{
     int i;
     uint16_t msk;