This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GPIO control

Hi. I'm using PCA10040. I'm trying to control GPIO. But I can't control PIN 09, 10. Let me show you my source code.

int main(void)
{

    /* Configure LED-pins as outputs. */
	for(int i=5;i<26;i++)
	{
	    nrf_gpio_pin_set(i);
	    nrf_gpio_cfg_output(i);
	}

    /* Toggle LEDs. */
    while (true)
    {
		for(int i=5;i<26;i++)
		{
			nrf_gpio_pin_set(i);
		}
		nrf_delay_ms(500);
		for(int i=5;i<26;i++)
		{
			nrf_gpio_pin_clear(i);
		}
		nrf_delay_ms(500);
    }
}

What is the problem? How can i fix it?

I need your help.

Parents Reply Children
No Data
Related