Package com.pi4j.io.gpio.exception

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


    }
   
    @Override
    public void setPwm(Pin pin, int value) {
        if (!hasPin(pin)) {
            throw new InvalidPinException(pin);       
        }
       
        PinMode mode = getMode(pin);

        if (mode != PinMode.PWM_OUTPUT) {
View Full Code Here


   
   
    @Override
    public int getPwm(Pin pin) {
        if (!hasPin(pin)) {
            throw new InvalidPinException(pin);
        }

        // return cached pin PWM value
        return getPinCache(pin).getPwmValue();                          
    }
View Full Code Here

TOP

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

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.