Concept Flow - Button with interrupt (GPIO.add_event_detect)
Setup GPIO pin as input
Attach event detect on pin
Wait for button press
Interrupt triggers callback
Callback runs user code
Return to waiting for next press
The program sets a pin as input, attaches an event detect to watch for button presses, and runs a callback function automatically when the button is pressed.