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

Change state of a pin

Hi there, I would like to make pin changes in my program. If my output pin is HIGH I want a function to change it to LOW and if was previously LOW change it to HIGH. Is there a function like that I can use with NRF52382? 
The IDE I'm using is Keil uVision 5.1. (PCA10040)

(Apparently the nrf_gpio_pin_toggle () function changes the state only briefly and then back again. )

Related