public int[] getPwmOnOffValues(Pin pin) {
        if (hasPin(pin) == false) {
            throw new InvalidPinException(pin);
        }
        int pwmValues[] = {
                getPinCache(pin).getPwmOnValue(),
                getPinCache(pin).getPwmOffValue()};
        return pwmValues;
    }
public int [ ] getPwmOnOffValues ( Pin pin ) { if ( hasPin ( pin ) == false ) { throw new InvalidPinException ( pin ) ; } int pwmValues [ ] = { getPinCache ( pin ) . getPwmOnValue ( ) , getPinCache ( pin ) . getPwmOffValue ( ) } ; return pwmValues ; }
@param pin represents channel 0..15
@return [0]: onValue, [1]: offValue