Change LED pin indicating BLE advertisement

Hi,

I want to change the LED pin that blinks to indicate BLE advertisement to pin 6. I have changed the LED_1 and LED_STOP in pca10040.h to 6:

I have also set NRF_LOG_BACKEND_UART_ENABLED in sdk_config.h to 0.

However, the LED only blinks 1 after initialization and then turns off until it BLE connects to my phone (then turns on). I want the LED to blink during the whole advertisement. Do you know why it blinks only once then stops? Are there any other places in the code that I should change to change the LED pin?

Thanks,

Han

Parents Reply Children
  • Hi,

    There could be other pin configurations still in effect (e.g. pin 6 is default pin for UART on the nRF52 DK.) However, since you have disabled UART and the behavior went good when fixing that other issue, I would not do much more than keep this at the back of my mind in case something similar resurfaced in the future. I consider this case closed.

    Regards,
    Terje

Related