Control Surface
1.2.0
MIDI Control Surface library for Arduino
|
This example demonstrates how to use custom callbacks to display the value of a selector.
Connect the common cathode of the RGB LED to ground.
The LEDs display the current setting of the bank. Red is the first bank (0), yellow is the second bank (1), green is the third bank (2), cyan is the fourth bank (3), blue is the fifth bank (4), and purple is the sixth bank (5).
Use the two push buttons to change the setting. The one on on pin 2 increments the setting, the one on pin 3 decrements the setting.
Keeping one of the buttons pressed will keep on cycling through the settings until you let go of it.
Pressing both buttons simultaneously resets the setting to its initial value.
Note: this example doesn't send any MIDI, but you could use it as a template for a MIDI controller with banks.
None.
Written by PieterP, 2020-02-03
https://github.com/tttapa/Control-Surface