Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MIDI REnc button mbed
Diff: main.cpp
- Revision:
- 10:c3b797b62ddb
- Parent:
- 5:7d7be4c72d21
- Child:
- 11:e6a47dc75120
diff -r a86ad099f24d -r c3b797b62ddb main.cpp
--- 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;