When I call nrf_gpio_pin_set(LED_1), the LED is turned off and when I call nrf_gpio_pin_clear(LED_1) it is turned on. Is this expected behaviour? I can't find any schematics for my board so it's not even possible to verify which way the LEDs are connected. I'm using the DK51, and initializing like so:
/* Initialize the Push Button DIO interrupt */
nrf_gpio_cfg_input(BUTTON_1, NRF_GPIO_PIN_PULLUP);
nrf_gpio_cfg_input(BOND_BUTTON, NRF_GPIO_PIN_PULLUP);
nrf_gpio_cfg_input(BUTTON_3, NRF_GPIO_PIN_PULLUP);
nrf_gpio_cfg_input(OPEN_ADV_BUTTON, NRF_GPIO_PIN_PULLUP);
app_gpiote_user_register(&m_push_button_interrupt, 1 << BUTTON_1 , 0x00, gpiote_event_handler);
app_gpiote_user_enable(m_push_button_interrupt);
APP_ERROR_CHECK(err_code);
/* Configure LED GPIOs */
nrf_gpio_cfg_output(SCAN_LED);
nrf_gpio_cfg_output(CONN_LED);
nrf_gpio_cfg_output(LED_3);
nrf_gpio_cfg_output(LED_4);