I would like to add a second button what should I add
#include <MIDI_Controller.h> // Include the library
const uint8_t velocity = 0b1111111; // Maximum velocity (0b1111111 = 0x7F = 127)
const uint8_t C4 = 60; // Note number 60 is defined as middle C in the MIDI specification
// Create a new instance of the class 'Digital', called 'button', on pin 2, that sends MIDI messages with note 'C4' (60) on channel 1, with velocity 127
Digital button(2, C4, 1, velocity);
void setup() {}
void loop() {
// Refresh the button (check whether the button's state has changed since last time, if so, send it over MIDI)
MIDI_Controller.refresh();
}
You are going to need to tell us a lot more. You will be writing the code, our job is to help when you get stuck, similarly with wiring. So when you have done some research (google) show us all your code in code tags, any error logs also in code tags and just a photo of a hand drawn wiring diagram will suffice.