Skip to content

Commit 50aaaf3

Browse files
committed
Update CustomerBufferSize.ino
1 parent 12c1e13 commit 50aaaf3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

examples/CustomerBufferSize/CustomerBufferSize.ino

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,22 @@ struct CustomBufferSizeSettings : public BLEMIDI_NAMESPACE::DefaultSettings {
99
//#include <hardware/BLEMIDI_nRF52.h>
1010
//#include <hardware/BLEMIDI_ArduinoBLE.h>
1111

12-
BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_ESP32_NimBLE, CustomBufferSizeSettings> BLEMIDI("Esp32-NimBLE-MIDI"); \
13-
MIDI_NAMESPACE::MidiInterface<BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_ESP32_NimBLE>, BLEMIDI_NAMESPACE::MySettings> MIDI((BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_ESP32_NimBLE> &)BLEMIDI);
12+
BLEMIDI_CREATE_CUSTOM_INSTANCE("Esp32-NimBLE-MIDI", MIDI, BLEMIDI_NAMESPACE::DefaultSettings);
1413

1514
unsigned long t0 = millis();
1615
bool isConnected = false;
1716

1817
// -----------------------------------------------------------------------------
1918
// When BLE connected, LED will turn on (indication that connection was successful)
2019
// When receiving a NoteOn, LED will go out, on NoteOff, light comes back on.
21-
// This is an easy and conveniant way to show that the connection is alive and working.
20+
// This is an easy and conveniant way to show that the connection is alive and working.
2221
// -----------------------------------------------------------------------------
2322
void setup()
2423
{
24+
Serial.begin(115200);
25+
while (!Serial) {}
26+
Serial.println("booting");
27+
2528
MIDI.begin();
2629

2730
pinMode(LED_BUILTIN, OUTPUT);
@@ -58,4 +61,4 @@ void loop()
5861

5962
MIDI.sendNoteOn (60, 100, 1); // note 60, velocity 100 on channel 1
6063
}
61-
}
64+
}

0 commit comments

Comments
 (0)