I'm trying to set up a simple interrupt to have the button (GPIO 12) set up an interrupt to change another GPIO pin.
I can't find any code snippet that would help me set up said interrupt (the only thing I can find in the controlsuite is for PWM interrupts.
Can somebody provide me a template for setting up a GPIO interrupt?