Hello All,
Recently I got the nRF 52840 PDK kit and wanted to start with a simple example.
I tried do the following.
#include "nrf.h"
#include "nrf_gpio.h"
#include "nrf_delay.h"
#define LED1_PIN 13
int main (void)
{
nrf_gpio_cfg_output(LED1_PIN);
nrf_gpio_pin_clear(LED1_PIN);
while(1)
{
nrf_gpio_pin_toggle(LED1_PIN);
nrf_delay_ms(1000);
}
} It works but when I use the following it doesn't. Can someone please help me out with the same? I would really appreciate it.#include "nrf.h"
#include "nrf_gpio.h"
#include "nrf_delay.h"
#define LED1_PIN 13
int main (void)
{
nrf_gpio_cfg_output(LED1_PIN);
nrf_gpio_pin_clear(LED1_PIN);
while(1)
{
nrf_gpio_pin_set(LED1_PIN);
nrf_delay_ms(1000);
nrf_gpio_pin_clear(LED1_PIN);
}
}