The following repository contains a functional Arduino Mega 2560 core and the MegaCommandLive firmware.
It is compatibile with the MegaCommand Arduino Shield and the Arduino IDE framework.
This is a fork of Manuel Odendahl's MIDICtrl Framework: https://github.com/wesen/mididuino
The updated repository contains numerous enhancements and fixes.
- In 2016 the core was adapted to compile with the ArduinoIDE and MegaCommand hardware design.
- In 2017 the core was modified to work alongside standard Arduino Code and Libraries.
- In 2018 the MegaCommandLive firmware was refactored in to c++ libraries and is now part of the MIDICtrl framework.
MacOS / Linux:
-
Download the Arduino IDE https://www.arduino.cc/en/Main/Software (1.8.5 tested)
-
Copy Arduino.app to your /Applications folder and launch it. (Must be opened first before performing step below)
-
Get the MIDICtrl library and MegaCommand Core (same repo) and copy it to /Applications/Arduino.app/Contents/Java/hardware/ :
cd /Applications/Arduino.app/Contents/Java/hardware/
git clone https://github.com/jmamma/MIDICtrl20_MegaCommand
Windows:
The Arduino compiler (avr-gcc) does not like spaces within the full path name when compiling the custom core.
-
Download the Windows ZIP file for non-admin install https://www.arduino.cc/download_handler.php?f=/arduino-1.8.5-windows.zip
-
Extract zip file to desktop.
-
Download MIDICtrl20_MegaCommand and extract to the
arduino-1.8.5\hardware\
folder. -
If you have an admin-installed Arduino IDE, extract MIDICtrl20_MegaCommand to the arduino user directory
%USERPROFILE%\Documents\Arduino\hardware\
(e.g.C:\Users\your_name\Documents\Arduino\hardware\
)
You need to set the correct display type.
As of 2.15 OLED display is enabled by default.
To enable the HD44780 16x2 display edit OLED.h
${install_dir}/MIDICtrl20_MegaCommand/avr/cores/megacommand/OLED.h
Change
#define OLED_DISPLAY
to
//#define OLED_DISPLAY
-
Open the Arduino IDE Application
-
Select: Tools -> Board -> MegaCommand
All the source code for MegaCommand Live is contained within this repository.
To compile the MegaCommandLive firmware do the following:
-
Create a new Arduino Sketch
-
Insert the following code
#include "MCL.h"
void setup() {
mcl.setup();
}
- Compile sketch and upload to your MegaCommand