| 
    Control Surface
     
   1.1.1
   MIDI Control Surface library for Arduino 
   | 
 
This example demonstrates the use of LEDs that respond to incoming MIDI note events by changing the brightness of an LED using PWM.
Connect an LED (+ current limiting resistor) to any PWM pin. Then change the pin number in the ledPin constant to match the pin with your LED connected.
If a MIDI Note On event for note 0x3C (C4 or middle C) is sent, the LED will light up, with the brightness depending on the velocity. 
 If a Note Off event for that note is sent, the LED will turn off. 
 (A Note On event with a velocity of zero also counts as a Note Off event.)
Route the MIDI output of a MIDI keyboard to the Arduino's MIDI input. Then play a middle C on the keyboard.
Written by PieterP, 2020-01-03 
 https://github.com/tttapa/Control-Surface
 1.8.16