From 6f71f1e896d81cc792c49273730f0d7c16f1fc84 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 5 Jan 2018 22:28:51 +0700 Subject: [PATCH] enhance blemidi --- .../Bluefruit52Lib/examples/Peripheral/blemidi/blemidi.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/Bluefruit52Lib/examples/Peripheral/blemidi/blemidi.ino b/libraries/Bluefruit52Lib/examples/Peripheral/blemidi/blemidi.ino index 121c0317..9ef1c7a8 100644 --- a/libraries/Bluefruit52Lib/examples/Peripheral/blemidi/blemidi.ino +++ b/libraries/Bluefruit52Lib/examples/Peripheral/blemidi/blemidi.ino @@ -42,8 +42,14 @@ void setup() Serial.begin(115200); Serial.println("Adafruit Bluefruit52 MIDI over Bluetooth LE Example"); + // Config the peripheral connection with maximum bandwidth + // more SRAM required by SoftDevice + // Note: All config***() function must be called before begin() + Bluefruit.configPrphBandwidth(BANDWIDTH_MAX); + Bluefruit.begin(); Bluefruit.setName("Bluefruit52 MIDI"); + Bluefruit.setTxPower(4); // Setup the on board blue LED to be enabled on CONNECT Bluefruit.autoConnLed(true);