Interface BrickletIO4.InterruptListener

  • All Superinterfaces:
    DeviceListener, java.util.EventListener, TinkerforgeListener
    Enclosing class:
    BrickletIO4

    public static interface BrickletIO4.InterruptListener
    extends DeviceListener
    This listener is triggered whenever a change of the voltage level is detected on pins where the interrupt was activated with BrickletIO4.setInterrupt(short). The values are a bitmask that specifies which interrupts occurred and the current value bitmask. For example: * (1, 1) or (0b0001, 0b0001) means that an interrupt on pin 0 occurred and currently pin 0 is high and pins 1-3 are low. * (9, 14) or (0b1001, 0b1110) means that interrupts on pins 0 and 3 occurred and currently pin 0 is low and pins 1-3 are high.
    • Method Detail

      • interrupt

        void interrupt​(short interruptMask,
                       short valueMask)