Update CustomerBufferSize.ino
This commit is contained in:
parent
12c1e135d4
commit
50aaaf3872
|
|
@ -9,8 +9,7 @@ struct CustomBufferSizeSettings : public BLEMIDI_NAMESPACE::DefaultSettings {
|
||||||
//#include <hardware/BLEMIDI_nRF52.h>
|
//#include <hardware/BLEMIDI_nRF52.h>
|
||||||
//#include <hardware/BLEMIDI_ArduinoBLE.h>
|
//#include <hardware/BLEMIDI_ArduinoBLE.h>
|
||||||
|
|
||||||
BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_ESP32_NimBLE, CustomBufferSizeSettings> BLEMIDI("Esp32-NimBLE-MIDI"); \
|
BLEMIDI_CREATE_CUSTOM_INSTANCE("Esp32-NimBLE-MIDI", MIDI, BLEMIDI_NAMESPACE::DefaultSettings);
|
||||||
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);
|
|
||||||
|
|
||||||
unsigned long t0 = millis();
|
unsigned long t0 = millis();
|
||||||
bool isConnected = false;
|
bool isConnected = false;
|
||||||
|
|
@ -18,10 +17,14 @@ bool isConnected = false;
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// When BLE connected, LED will turn on (indication that connection was successful)
|
// 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.
|
// 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()
|
void setup()
|
||||||
{
|
{
|
||||||
|
Serial.begin(115200);
|
||||||
|
while (!Serial) {}
|
||||||
|
Serial.println("booting");
|
||||||
|
|
||||||
MIDI.begin();
|
MIDI.begin();
|
||||||
|
|
||||||
pinMode(LED_BUILTIN, OUTPUT);
|
pinMode(LED_BUILTIN, OUTPUT);
|
||||||
|
|
@ -58,4 +61,4 @@ void loop()
|
||||||
|
|
||||||
MIDI.sendNoteOn (60, 100, 1); // note 60, velocity 100 on channel 1
|
MIDI.sendNoteOn (60, 100, 1); // note 60, velocity 100 on channel 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue