diff --git a/examples/CustomerBufferSize/CustomerBufferSize.ino b/examples/CustomerBufferSize/CustomerBufferSize.ino index 6883a7a..5d86f67 100644 --- a/examples/CustomerBufferSize/CustomerBufferSize.ino +++ b/examples/CustomerBufferSize/CustomerBufferSize.ino @@ -9,8 +9,7 @@ struct CustomBufferSizeSettings : public BLEMIDI_NAMESPACE::DefaultSettings { //#include //#include -BLEMIDI_NAMESPACE::BLEMIDI_Transport BLEMIDI("Esp32-NimBLE-MIDI"); \ -MIDI_NAMESPACE::MidiInterface, BLEMIDI_NAMESPACE::MySettings> MIDI((BLEMIDI_NAMESPACE::BLEMIDI_Transport &)BLEMIDI); +BLEMIDI_CREATE_CUSTOM_INSTANCE("Esp32-NimBLE-MIDI", MIDI, BLEMIDI_NAMESPACE::DefaultSettings); unsigned long t0 = millis(); bool isConnected = false; @@ -18,10 +17,14 @@ bool isConnected = false; // ----------------------------------------------------------------------------- // When BLE connected, LED will turn on (indication that connection was successful) // When receiving a NoteOn, LED will go out, on NoteOff, light comes back on. -// This is an easy and conveniant way to show that the connection is alive and working. +// This is an easy and conveniant way to show that the connection is alive and working. // ----------------------------------------------------------------------------- void setup() { + Serial.begin(115200); + while (!Serial) {} + Serial.println("booting"); + MIDI.begin(); pinMode(LED_BUILTIN, OUTPUT); @@ -58,4 +61,4 @@ void loop() MIDI.sendNoteOn (60, 100, 1); // note 60, velocity 100 on channel 1 } -} +} \ No newline at end of file