protected static Pin createDigitalAndPwmPin(String providerName, int address, String name, EnumSet<PinEdge> edges) { return createPin(providerName, address, name, EnumSet.of(PinMode.DIGITAL_INPUT, PinMode.DIGITAL_OUTPUT, PinMode.PWM_OUTPUT), PinPullResistance.all(), edges); }
public UnsupportedPinPullResistanceException(Pin pin, PinPullResistance resistance) { super("This GPIO pin [" + pin.getName() + "] does not support the pull resistance specified [" + resistance.getName() + "]"); this.pin = pin; this.resistance = resistance; }
@Override public void setPullResistance(Pin pin, PinPullResistance resistance) { super.setPullResistance(pin, resistance); com.pi4j.wiringpi.Gpio.pullUpDnControl(pin.getAddress(), resistance.getValue()); }
@Override public void setPullResistance(Pin pin, PinPullResistance resistance) { super.setPullResistance(pin, resistance); com.pi4j.wiringpi.Gpio.pullUpDnControl(pin.getAddress(), resistance.getValue()); }
private static Pin createDigitalAndPwmPin(int address, String name) { return new PinImpl(RaspiGpioProvider.NAME, address, name, EnumSet.of(PinMode.DIGITAL_INPUT, PinMode.DIGITAL_OUTPUT, PinMode.PWM_OUTPUT), PinPullResistance.all()); } }
public UnsupportedPinPullResistanceException(Pin pin, PinPullResistance resistance) { super("This GPIO pin [" + pin.getName() + "] does not support the pull resistance specified [" + resistance.getName() + "]"); this.pin = pin; this.resistance = resistance; }
private static Pin createDigitalPin(int address, String name) { return new PinImpl(RaspiGpioProvider.NAME, address, name, EnumSet.of(PinMode.DIGITAL_INPUT, PinMode.DIGITAL_OUTPUT), PinPullResistance.all()); }
"\",\"mode\":\"" + pin.getMode().getName() + "\",\"direction\":\"" + pin.getMode().getDirection() + "\",\"pull\":\"" + pin.getPullResistance().getName() + "\"},\"state\":{" + "\"name\":\"" + state.getName() +
protected static Pin createDigitalPin(String providerName, int address, String name, EnumSet<PinEdge> edges) { return createPin(providerName, address, name, EnumSet.of(PinMode.DIGITAL_INPUT, PinMode.DIGITAL_OUTPUT, PinMode.SOFT_PWM_OUTPUT), PinPullResistance.all(), edges); }
"\",\"mode\":\"" + pin.getMode().getName() + "\",\"direction\":\"" + pin.getMode().getDirection() + "\",\"pull\":\"" + pin.getPullResistance().getName() + "\"},\"state\":{" + "\"name\":\"" + state.getName() +
protected static Pin createDigitalAndPwmPin(String providerName, int address, String name, EnumSet<PinEdge> edges) { return createPin(providerName, address, name, EnumSet.of(PinMode.DIGITAL_INPUT, PinMode.DIGITAL_OUTPUT, PinMode.PWM_OUTPUT), PinPullResistance.all(), edges); }
private static Pin createDigitalPin(int address, String name) { Pin pin = new PinImpl(PROVIDER_NAME, address, name, EnumSet.of(PinMode.DIGITAL_INPUT, PinMode.DIGITAL_OUTPUT), PinPullResistance.all()); return pin; } }
private static Pin createDigitalAndPwmPin(int address, String name) { return new PinImpl(RaspiGpioProvider.NAME, address, name, EnumSet.of(PinMode.DIGITAL_INPUT, PinMode.DIGITAL_OUTPUT, PinMode.PWM_OUTPUT), PinPullResistance.all()); } }
protected static Pin createDigitalPin(String providerName, int address, String name, EnumSet<PinEdge> edges) { return createPin(providerName, address, name, EnumSet.of(PinMode.DIGITAL_INPUT, PinMode.DIGITAL_OUTPUT, PinMode.SOFT_PWM_OUTPUT), PinPullResistance.all(), edges); }
private static Pin createDigitalPin(int address, String name) { return new PinImpl(RaspiGpioProvider.NAME, address, name, EnumSet.of(PinMode.DIGITAL_INPUT, PinMode.DIGITAL_OUTPUT), PinPullResistance.all()); }