@Override public Future<?> pulse(long duration, boolean blocking){ return pin.pulse(duration, onState, blocking); } }
@Override public Future<?> pulse(long duration){ return pin.pulse(duration, onState); }
@Override public void pulse(int milliseconds) { // initiate a pulse on the GPIO pin pin.pulse(milliseconds, closedState); } }
@Override public void invoke(GpioPin pin, PinState state) { if (targetPin != null) { targetPin.pulse(milliseconds); } } }
@Override public void invoke(GpioPin pin, PinState state) { if (targetPin != null) { targetPin.pulse(milliseconds); } } }
@Override public Future<?> pulse(long duration, boolean blocking){ return pin.pulse(duration, onState, blocking); } }
@Override public void pulse(int milliseconds) { // initiate a pulse on the GPIO pin pin.pulse(milliseconds, closedState); } }
@Override public Future<?> pulse(long duration){ return pin.pulse(duration, onState); }
/** * Reset the BiDiB-Pi when the GPIO_04 is connected to the reset pin of the processor. */ public void resetBidibPi() { LOGGER.info("Reset the BiDiB-Pi with the reset pin connected to GPIO_04."); resetPin.pulse(50, PinState.LOW, true); LOGGER.info("Reset the BiDiB-Pi with the reset pin connected to GPIO_04 has finished."); }
@Override public void pulse(long milliseconds, GpioPinDigitalOutput... pin) { if (pin == null || pin.length == 0) { throw new IllegalArgumentException("Missing pin argument."); } for (GpioPinDigitalOutput p : pin) { // ensure the requested pin has been provisioned if (!pins.contains(p)) { throw new GpioPinNotProvisionedException(p.getPin()); } // toggle pin state p.pulse(milliseconds); } }
@Override public void pulse(long milliseconds, GpioPinDigitalOutput... pin) { if (pin == null || pin.length == 0) { throw new IllegalArgumentException("Missing pin argument."); } for (GpioPinDigitalOutput p : pin) { // ensure the requested pin has been provisioned if (!pins.contains(p)) { throw new GpioPinNotProvisionedException(p.getPin()); } // toggle pin state p.pulse(milliseconds); } }
pin.pulse(1000, true); // set second argument to 'true' use a blocking call
pin.pulse(1000, true); // set second argument to 'true' use a blocking call
output.pulse(1000, true); // set second argument to 'true' use a blocking call Thread.sleep(50);
myLed.pulse(1000);
output.pulse(1000, true); // set second argument to 'true' use a blocking call Thread.sleep(50);
output.pulse(1000, true); // set second argument to 'true' use a blocking call Thread.sleep(50);
output.pulse(1000, true); // set second argument to 'true' use a blocking call Thread.sleep(50);
myLed.pulse(1000);