From 50aaaf387291d73f6266133f5307bc5423d4da93 Mon Sep 17 00:00:00 2001 From: lathoub <4082369+lathoub@users.noreply.github.com> Date: Tue, 31 May 2022 23:02:44 +0200 Subject: [PATCH] Update CustomerBufferSize.ino --- examples/CustomerBufferSize/CustomerBufferSize.ino | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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