Hello!
I want to set the Pin2 (GPIO) on VCC. I have try it by nrf_gpio_pin_set(2) but it doesn’t work. Is there a better way to set Pin2?
Thanks!
Have you configured it as output? And by the way (2) means GPIO2 signal, not physical pin number on chip.
You would have to enable the pin before you set it, for example like this:
uint32_t pin = 2; nrf_gpio_cfg_output(pin); nrf_gpio_pin_set(pin);
where could I see which GPIO goes to which Pin?
Product specification