
Gemphet8 ; 8-polyphonic synthesizer control application
Dependencies: MIDI REnc button mbed
Diff: main.cpp
- Revision:
- 10:c3b797b62ddb
- Parent:
- 5:7d7be4c72d21
- Child:
- 11:e6a47dc75120
--- a/main.cpp Mon Aug 11 23:16:06 2014 +0000 +++ b/main.cpp Tue Aug 12 00:00:28 2014 +0000 @@ -8,15 +8,16 @@ */ #include "mbed.h" -//#include "button.h" +#include "button.h" //#include "REnc.h" - +#include "MIDI.h" +#include "I2CEEprom.h" // LED (active HIGH) #define dbg_led_on() { } #define dbg_led_off() { } - +/// MIDI parameters -- 82-byte (32+32+18) uint8_t midi_params[]={ 0,0,0,0,0,0,0,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, @@ -24,11 +25,16 @@ }; DigitalOut myled(LED1); +I2CEEprom i2crom(dp5, dp27, 0xa0); +MIDI midi(dp16, dp15); + int main() { while(1) { + midi.read(); + myled = 1; wait(0.2); myled = 0;