Package com.tinkerforge

Examples of com.tinkerforge.BrickletIO4.addInterruptListener()


      BrickletIO4 brickletIO4 = bricklet.getTinkerforgeDevice();
      try {
        logger.debug("{} setting InterruptListener for DigitalSensorIO4: {} ", LoggerConstants.TFINIT,
            subId);
        listener = new InterruptListener();
        brickletIO4.addInterruptListener(listener);
        brickletIO4.setConfiguration((short) mask, BrickletIO4.DIRECTION_IN,
            isPullUpResistorEnabled());
        fetchSensorValue();
      } catch (TimeoutException e) {
        TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.