Skip to content

Disable interrupt on pin (gpio_interrupt_off)

What it does: Disables previously set interrupts on the selected pin.

gpio_interrupt_off

Inputs

  • pin: pin number on which the interrupt was activated.

Output

  • none (command block).

When to use it

  • Temporarily disabling event response.
  • Safe termination of a function using an interrupt.

Tips and pitfalls

  • Turn off the same pins that were previously turned on via gpio_interrupt.
  • After shutdown, verify that the program logic is not waiting for further callbacks.

Generated Python example

p22.irq(trigger=0, handler=callback22)