Datasheet

BLEMidi
BLEMidi is a helper class that adds support for sending and receiving MIDI Messages using the MIDI over Bluetooth LE
specification. BLEMidi supports the full standard MIDI protocol (including SysEx messages), and it also can act as the
hardware interface for the Arduino MIDI Library.
API
BLEMidi has the following public API.
Installing the Arduino MIDI Library
BLEMidi is easiest to use when combined with the Arduino MIDI Library. You will need version 4.3.0 or higher installed
before continuing with the example code.
Next, select Communication from the topic dropdown, and enter MIDI Library into the search box. Click the Install
button to install version 4.3.0 or higher of the MIDI Library.
The Bluefruit nRF52 Feather codebase is in an early BETA stage and is undergoing active development
based on customer feedback and testing. As such, the class documentation here is incomplete, and you
should consult the Github repo for the latest code and API developments: https://goo.gl/LdEx62
// Constructor
BLEMidi(uint16_t fifo_depth = 128);
err_t begin (void);
bool notifyEnabled (void);
// Stream API for Arduino MIDI Library Interface
int read (void);
size_t write (uint8_t b);
int available (void);
int peek (void);
void flush (void);
size_t write (const char *str);
size_t write (const uint8_t *buffer, size_t size);
© Adafruit Industries https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide Page 137 of 175