Interface BrickletIO16.InterruptListener

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

    public static interface BrickletIO16.InterruptListener
    extends DeviceListener
    This listener is triggered whenever a change of the voltage level is detected on pins where the interrupt was activated with BrickletIO16.setPortInterrupt(char, short). The values are the port, a bitmask that specifies which interrupts occurred and the current value bitmask of the port. For example: * ('a', 1, 1) or ('a', 0b00000001, 0b00000001) means that on port A an interrupt on pin 0 occurred and currently pin 0 is high and pins 1-7 are low. * ('b', 129, 254) or ('b', 0b10000001, 0b11111110) means that on port B interrupts on pins 0 and 7 occurred and currently pin 0 is low and pins 1-7 are high.
    • Method Detail

      • interrupt

        void interrupt​(char port,
                       short interruptMask,
                       short valueMask)