@@ -9,19 +9,22 @@ struct CustomBufferSizeSettings : public BLEMIDI_NAMESPACE::DefaultSettings {
9
9
// #include <hardware/BLEMIDI_nRF52.h>
10
10
// #include <hardware/BLEMIDI_ArduinoBLE.h>
11
11
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);
14
13
15
14
unsigned long t0 = millis();
16
15
bool isConnected = false ;
17
16
18
17
// -----------------------------------------------------------------------------
19
18
// When BLE connected, LED will turn on (indication that connection was successful)
20
19
// 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.
22
21
// -----------------------------------------------------------------------------
23
22
void setup ()
24
23
{
24
+ Serial.begin (115200 );
25
+ while (!Serial) {}
26
+ Serial.println (" booting" );
27
+
25
28
MIDI.begin ();
26
29
27
30
pinMode (LED_BUILTIN, OUTPUT);
@@ -58,4 +61,4 @@ void loop()
58
61
59
62
MIDI.sendNoteOn (60 , 100 , 1 ); // note 60, velocity 100 on channel 1
60
63
}
61
- }
64
+ }
0 commit comments