Blinking led custom board

Hi,

I have made my own custom board with the nrf52811. Therefore I was using the nrf52dk. 

I have made connection with my custom board and simply want to blink an led. The pin I´m using is p0.13.

#include <stdbool.h>
#include <stdint.h>
#include "nrf_delay.h"
#include "nrf_gpio.h"

#define led 13

/**
 * @brief Function for application main entry.
 */
int main(void)
{
    /* Configure board. */
    nrf_gpio_cfg_output(led);

    /* Toggle LEDs. */
    while (true)
    {
      nrf_gpio_pin_set(led);
      nrf_delay_ms(500);
      nrf_gpio_pin_clear(led);
      nrf_delay_ms(500);
    }
}

This is how I want to blink the led. Should this work fine or do I have to configure the pin on another way? And is it electrically good?

Related