Open Klaus-KK opened 3 years ago
Hi @Klaus-KK , you are right, the issue is due to a limitation of BLE mode in the NINA. In fact, we are configuring the esp32 to forward BLE via HCI, so we have no control over the protocol. RGB leds are controlled via SPI which is deactivated when BLE is active, hence the issue. @sebromero @agdl can we document this somehow?
The RBG LED on the Arduino RP2040 Connect cannot be used at the same time with BLE. I was not sure where to create the issue as it could be in the NINA firmware or library as well. Please advise if you need me to create the issue somewhere else.
The issue was first reported by a user in the Arduino forum. I noticed this a while ago as well but did not have time to investigate this further.
https://forum.arduino.cc/t/nano-rp2040-rgb-led-and-arduinoble-incompatibility/888604
When the RBG LED is initialized and working and then BLE.begin() is called, the RGB LED stops working. I also tested this the other way around starting BLE first and then the RGB LED, but I do not remember whether BLE stopped working or whether the LED did not work. But I know it did not work as expected. I can confirm if you like.