Skip to content

Commit f0c3581

Browse files
authored
Merge pull request #97 from lathoub/Arduino-Nano-BLE-33
Arduino nano ble 33
2 parents 9e68c95 + 139537b commit f0c3581

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/hardware/BLEMIDI_ArduinoBLE.h

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
#include <ArduinoBLE.h>
44

5-
BLEService midiService(SERVICE_UUID);
6-
BLEStringCharacteristic midiChar(CHARACTERISTIC_UUID, // standard 16-bit characteristic UUID
7-
BLERead | BLEWrite | BLENotify | BLEWriteWithoutResponse, 16); // remote clients will be able to get notifications if this characteristic changes
8-
95
#define BLE_POLLING
106

117
BEGIN_BLEMIDI_NAMESPACE
128

9+
BLEService midiService(SERVICE_UUID);
10+
11+
BLEStringCharacteristic midiChar(CHARACTERISTIC_UUID, // standard 16-bit characteristic UUID
12+
BLERead | BLEWrite | BLENotify | BLEWriteWithoutResponse, 16); // remote clients will be able to get notifications if this characteristic changes
13+
1314
template<typename T, int rawSize>
1415
class Fifo {
1516
public:
@@ -220,12 +221,12 @@ bool BLEMIDI_ArduinoBLE::begin(const char* deviceName, BLEMIDI_Transport<class B
220221
/*! \brief Create an instance for nRF52 named <DeviceName>
221222
*/
222223
#define BLEMIDI_CREATE_INSTANCE(DeviceName, Name) \
223-
BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_ArduinoBLE> BLE##Name(DeviceName); \
224-
MIDI_NAMESPACE::MidiInterface<BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_ArduinoBLE>, BLEMIDI_NAMESPACE::MySettings> Name((BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_ArduinoBLE> &)BLE##Name);
224+
BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_ArduinoBLE> BLE##Name(DeviceName); \
225+
MIDI_NAMESPACE::MidiInterface<BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_ArduinoBLE>, BLEMIDI_NAMESPACE::MySettings> Name((BLEMIDI_NAMESPACE::BLEMIDI_Transport<BLEMIDI_NAMESPACE::BLEMIDI_ArduinoBLE> &)BLE##Name);
225226

226227
/*! \brief Create a default instance for nRF52 (Nano 33 BLE) named BLE-MIDI
227228
*/
228229
#define BLEMIDI_CREATE_DEFAULT_INSTANCE() \
229-
BLEMIDI_CREATE_INSTANCE("BLE-MIDI", MIDI)
230+
BLEMIDI_CREATE_INSTANCE("BLE-MIDI", MIDI)
230231

231232
END_BLEMIDI_NAMESPACE

0 commit comments

Comments
 (0)