Package com.pi4j.io.gpio.exception

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

Related Classes of com.pi4j.io.gpio.exception.UnsupportedPinPullResistanceException

Copyright © 2018 www.massapicom. 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.