MCPcopy Create free account
hub / github.com/benfry/processing4 / releaseInterrupt

Method releaseInterrupt

java/libraries/io/src/processing/io/GPIO.java:478–494  ·  view source on GitHub ↗

Stops listening for interrupts on an input pin @param pin GPIO pin @see attachInterrupt @see noInterrupts @see interrupts @webref GPIO @webBrief Stops listening for interrupts on an input pin

(int pin)

Source from the content-addressed store, hash-verified

476 * @webBrief Stops listening for interrupts on an input pin
477 */
478 public static void releaseInterrupt(int pin) {
479 Thread t = irqThreads.get(pin);
480 if (t == null) {
481 return;
482 }
483
484 t.interrupt();
485 try {
486 t.join();
487 } catch (InterruptedException e) {
488 System.err.println("Error joining thread in releaseInterrupt: " + e.getMessage());
489 }
490 t = null;
491 irqThreads.remove(pin);
492
493 disableInterrupt(pin);
494 }
495
496
497 /**

Callers

nothing calls this directly

Calls 6

disableInterruptMethod · 0.95
getMethod · 0.65
getMessageMethod · 0.65
joinMethod · 0.45
printlnMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected