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

Issue with setting GPIO pins as output.

Hello, I am new to developing with nrf and have been trying to follow tutorials on individually setting pins as output. I am working on just getting a specified pin to blink an LED.

My code is as follows:

#define PIN27 27

int main(void)
{
    nrf_gpio_cfg_output(PIN27);
    nrf_gpio_pin_clear(PIN27);
    while(1)
    {
        nrf_gpio_pin_toggle(PIN27);
        nrf_delay_ms(1000);
    }
}

For some reason, the LED is not blinking even though it seems I've followed the code online perfectly. Can anyone see the issue?

Parents Reply Children
Related