Package com.pi4j.io.gpio.exception

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


        if (!hasPin(pin)) {
            throw new InvalidPinException(pin);
        }
       
        if (!pin.getSupportedPinModes().contains(mode)) {
            throw new UnsupportedPinModeException(pin, mode);
        }
       
        // cache exported state
        getPinCache(pin).setExported(true);
       
View Full Code Here


        if (!pin.getSupportedPinModes().contains(mode)) {
            throw new InvalidPinModeException(pin, "Invalid pin mode [" + mode.getName() + "]; pin [" + pin.getName() + "] does not support this mode.");
        }

        if (!pin.getSupportedPinModes().contains(mode)) {
            throw new UnsupportedPinModeException(pin, mode);
        }
       
        // cache mode
        getPinCache(pin).setMode(mode);
    }
View Full Code Here

TOP

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

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.