Send-MIDI-Notes
Example showing how to send MIDI Note messages.
- Boards:
 - AVR, AVR USB, Due, Nano 33, Teensy 3.x, ESP32
 
 
 
 
Button pushbutton = {2};
 
 
const uint8_t velocity = 0x7F;
 
void setup() {
  pushbutton.begin(); 
}
 
void loop() {
  pushbutton.update();
  if (pushbutton.getState() == Button::Falling)
  else if (pushbutton.getState() == Button::Rising)
}