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!
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);