Debug-MIDI-Interface
This example demonstrates how to use the MIDI interface for debugging.
- Boards: 🛈
- AVR, AVR USB, Nano Every, Due, Nano 33 IoT, Nano 33 BLE, UNO R4, Pi Pico, Teensy 3.x, ESP32, ESP8266
Connections
- 5: momentary push button (to ground)
The internal pull-up resistor for the button will be enabled automatically.
Behavior
- Upload the sketch and open the Serial monitor.
- Set the line ending to new line or new line and carriage return.
- When the button on pin 5 is pressed, a MIDI Note On message is sent for note C4, and you'll see that event printed in the Serial monitor.
- When the button on pin 5 is released, a MIDI Note Off message is sent for note C4, and you'll also see that in the monitor.
- When you type in "90 3C 7F" (without the quotes), and press enter, the built-in LED will light up.
- When you type in "80 3C 7F", and press enter, the LED will turn off again.
Mapping
None.
Written by PieterP, 2019-08-07
https://github.com/tttapa/Control-Surface
5,
};
LED_BUILTIN,
};
void setup() {
}
void loop() {
}
constexpr Channel Channel_1
The main header file that includes all Control-Surface header files.
Control_Surface_ & Control_Surface
A predefined instance of the Control Surface to use in the Arduino sketches.
void begin()
Initialize the Control_Surface.
void loop()
Update all MIDI elements, send MIDI events and read MIDI input.
Generic base class for classes that listen for MIDI Note, Control Change and Key Pressure events on a...
A class for debug MIDI interfaces sending and receiving human-readable MIDI messages over the USB CDC...