Examples of UnsupportedPinModeException


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

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

        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
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.