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

How do I use button Push Interrupt

I want to change Variable state( 0->1 or 1->0) when I push the button.

I was searching for example relating to the GPIO.

but I did not find that i want.

Everything is a timer example

I would like to implement a function that operates when just press a button(using a interrupt).

You can do the advice would be appreciated.

I'd like to get help on how to implement.

What should I do?

I use nrf51822-DK and small button.

Related