Music key reference. From C to B, major and minor
Dependencies: EFM32_SegmentLCD IOFuncLib mbed
main.cpp
- Committer:
- MaxScorda
- Date:
- 2015-06-28
- Revision:
- 0:45c4e9ef5b03
File content as of revision 0:45c4e9ef5b03:
#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(); } }