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.