Music key reference. From C to B, major and minor

Dependencies:   EFM32_SegmentLCD IOFuncLib mbed

Revision:
0:45c4e9ef5b03
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jun 28 12:57:01 2015 +0000
@@ -0,0 +1,44 @@
+#include "mbed.h"
+#include "EFM32_SegmentLCD.h"
+
+/******************** Define I/O *****************************/
+InterruptIn in0(PB9);
+InterruptIn in1(PB10);
+
+silabs::EFM32_SegmentLCD segmentDisplay;
+
+
+DigitalOut myled1(LED1);
+DigitalOut myled0(LED0);
+
+/***************** Define callback handlers *********************/
+void in0_handler();
+void in1_handler();
+
+
+//------------- variabili
+int kcount = 0;
+
+
+
+
+//------------ Funzioni -------------
+#include "midiFunctions.h"
+#include "Functions.h"
+
+
+
+int main()
+{
+    // Initialize pushbutton handler
+    in0.rise(NULL);
+    in0.fall(in0_handler);
+
+    in1.rise(NULL);
+    in1.fall(in1_handler);
+
+    printKey(kcount);
+    while(1) {
+        sleep();
+    }
+}