Hi everyone,
I'm relatively new to Arduino and have been working on a project (basic midi controller) involving an ESP32 board communicating with a PC using Bluetooth. I'm using the Control-Surface.h library for handling the MIDI communication (instantiating BluetoothMIDI_Interface).
I have successfully prototyped my project, and the midi over ble communication works fine. However, I'm now trying to implement a visual indicator using an LED to show the Bluetooth connection status.
My goal is to have the LED blinking when the ESP32 is searching for a connection, remain solid when connected, and turn off when not connected.
I have done some research and managed to control the LED using the BLEMIDI_ESP32.h and BLEMidi.h libraries. However, when I tried to incorporate the Control-Surface library (for which I am thankful to Pieter P for making it available), I faced some challenges in approaching the LED indication.
I apologize if the solution may seem like it is already written somewhere, but before deciding to ask, I have experimented and researched for days, and still, I cannot figure it out. I have consulted all the documentation and observed the class codes, trying to understand how to use them correctly. However, the logic behind the proper usage of the libraries/classes is still probably not entirely clear to me.
I would be extremely grateful if someone with experience in using Control-Surface could kindly guide me on how to achieve this. Any insights, code examples, or step-by-step explanations would be of immense help.
Thank you all in advance for your valuable assistance and support.
Best regards,
Ghisa