Datasheet
Example
The blemidi example demonstrates how to use the BLEMidi helper class with the Arduino MIDI Library. The example
sends a looping arpeggio, and prints any incoming MIDI note on and note off messages to the Arduino Serial Monitor.
This example may be out of date, and you should always consult the latest example code in the Bluefruit52 example
folder!
/*********************************************************************
This is an example for our nRF52 based Bluefruit LE modules
Pick one up today in the adafruit shop!
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
MIT license, check LICENSE for more information
All text above, and the splash screen below must be included in
any redistribution
*********************************************************************/
#include <bluefruit.h>
#include <MIDI.h>
BLEDis bledis;
BLEMidi blemidi;
// Create a new instance of the Arduino MIDI Library,
// and attach BluefruitLE MIDI as the transport.
MIDI_CREATE_BLE_INSTANCE(blemidi);
// Variable that holds the current position in the sequence.
int position = 0;
© Adafruit Industries https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide Page 138 of 175