clean up
This commit is contained in:
1 parent
0999697900
commit
0008e3fbd0
2 files changed
+4
-10
No files matched your search
@@ -93,21 +93,15 @@ void setupAdv(void)
|
||||
void midi_write_callback(void)
|
||||
{
|
||||
MIDI.read();
|
||||
Serial.println("write callback");
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
if ( Bluefruit.connected() && blemidi.notifyEnabled() )
|
||||
{
|
||||
//if (MIDI.read()) // If we have received a message
|
||||
{
|
||||
//ledOn(LED_BUILTIN);
|
||||
MIDI.sendNoteOn(42, 127, 1); // Send a Note (pitch 42, velo 127 on channel 1)
|
||||
delay(1000); // Wait for a second
|
||||
MIDI.sendNoteOff(42, 0, 1); // Stop the note
|
||||
//ledOff(LED_BUILTIN);
|
||||
}
|
||||
MIDI.sendNoteOn(42, 127, 1); // Send a Note (pitch 42, velo 127 on channel 1)
|
||||
delay(1000); // Wait for a second
|
||||
MIDI.sendNoteOff(42, 0, 1); // Stop the note
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
#define MIDI_CREATE_BLE_INSTANCE(midiService) MIDI_CREATE_INSTANCE(BLEMidi, midiService, MIDI)
|
||||
|
||||
#define BLE_MIDI_DEFAULT_FIFO_DEPTH 64
|
||||
#define BLE_MIDI_DEFAULT_FIFO_DEPTH 128
|
||||
|
||||
extern const uint8_t BLEMIDI_UUID_SERVICE[];
|
||||
extern const uint8_t BLEMIDI_UUID_CHR_IO[];
|
||||
|
||||
Reference in new issue
Block a user