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

Nrf52832 changing advertising led to gpio and external led

Hello,

I'm working with the Nrf52832 Dev Kit and the ble_uart_example. After flashing with the hex file and powering the Dev Kit, the on-board-LED starts to blink. Now I want to use an external LED connected to a GPIO to show if the Board is advertising(led blinking) or connected(led on). What changes in the software must be made that the GPIO with an external LED can be used as an indicator for advertising. I tried to change the pins in bsp_config.h but it wasn't successful.

Best regards!

Parents Reply
  • Okay thanks. I changed the pin number to GPIO pin 22 to see if the external connected LED starts blinking for advertising but the external LED stays on the whole time. Do I have to change other parts in the code?

    Code from pca10040.h

    // LEDs definitions for PCA10040
    #define LEDS_NUMBER    4
    
    #define LED_START      17
    #define LED_1          22
    #define LED_2          18
    #define LED_3          19
    #define LED_4          20
    #define LED_STOP       20

Children
Related