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

Something simple

I'm trying without much success to write something fairly simple. Basically connect a signal to a pin, and run a function whenever that pin changes state. What's confusing me is how do I tie everything up so that my function is triggered based on the state of the pin. Is there example code anywhere? App note maybe? (The GPIOTE example is meant for toggling I/Os and I cannot quite understand from it how to do what I want. I've looked through the PPI documentation, but I'm afraid it is not very instructional for actually getting something done. I understand the theory, but lack the practical bit of how EVERYTHING is connected together from signal entry to execution.) I'm using the nRF51822 Evaluation Kit, and the SoftDevice.

Related