This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to program an nRF52 DK to send BLE MIDI message when I push a button?

Hi! I'm new developing using real C language. I have more experience using Arduino. I'm trying to send a MIDI message over Bluetooth MIDI when I push one of the buttons of my Nordic nRF52 DK. But I'm not being successful. How can I do that?

I tried to use this tutorial: https://www.novelbits.io/bluetooth-gatt-services-characteristics/ Everything works fine and I'm able to create a discoverable BLE MIDI device. But I'm stuck setting a way to send actual MIDI messages. I've made a test simply using the buttons to turn on/off the DK LEDs and here it's everything fine.

How can I modify this example in order to send some type of MIDI message when I push a button?
This is fairly easy for me using Arduino, but I want to learn a bit more about "proper" embedded software programming and also be able to use more recent SoftDevices (Arduino one is S132 maximum).

Related