Serial-Interface
This example demonstrates how to use a Serial MIDI Interface, for use with 5-pin DIN connectors, for example.
- 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
- This is just a simple MIDI controller with a single note button and an LED.
Mapping
None.
Written by PieterP, 2020-01-09
https://github.com/tttapa/Control-Surface
auto &serial = Serial;
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 wrapper class for MIDI interfaces sending and receiving MIDI messages over a Serial port of generic...