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

pin_number for congiguring the GPIOs

hi! I'm trying to use the following to configure the GPIOs in nRF52DK for the LED blinky.

nrf_gpio_cfg_output(pin_number)

But I'm not sure what number should I use for the "pin_number". I found the following GPIOs for LEDs.

Part         GPIO

LED1      P0.13

LED2      P0.14

LED3      P0.15

LED4      P0.16

For example, which number should I use for the "pin_number" when I use "LED1(P0.13)"? 

Parents Reply Children
Related