Examples of UnsupportedPinPullResistanceException


Examples of com.pi4j.io.gpio.exception.UnsupportedPinPullResistanceException

        if (!hasPin(pin)) {
            throw new InvalidPinException(pin);
        }
       
        if (!pin.getSupportedPinPullResistance().contains(resistance)) {
            throw new UnsupportedPinPullResistanceException(pin, resistance);
        }
       
        // cache resistance
        getPinCache(pin).setResistance(resistance);
    }
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.