Package com.pi4j.io.gpio.trigger
Class GpioSetStateTrigger
- java.lang.Object
-
- com.pi4j.io.gpio.trigger.GpioTriggerBase
-
- com.pi4j.io.gpio.trigger.OutputTargetedGpioTrigger
-
- com.pi4j.io.gpio.trigger.GpioSetStateTrigger
-
- All Implemented Interfaces:
GpioTrigger
public class GpioSetStateTrigger extends OutputTargetedGpioTrigger
-
-
Field Summary
-
Fields inherited from class com.pi4j.io.gpio.trigger.OutputTargetedGpioTrigger
targetPin
-
-
Constructor Summary
Constructors Constructor Description GpioSetStateTrigger(GpioPinDigitalOutput targetPin, PinState targetPinState)
GpioSetStateTrigger(PinState[] states, GpioPinDigitalOutput targetPin, PinState targetPinState)
GpioSetStateTrigger(PinState state, GpioPinDigitalOutput targetPin, PinState targetPinState)
GpioSetStateTrigger(List<PinState> states, GpioPinDigitalOutput targetPin, PinState targetPinState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PinState
getTargetPinState()
void
invoke(GpioPin pin, PinState state)
-
Methods inherited from class com.pi4j.io.gpio.trigger.OutputTargetedGpioTrigger
getTargetPin
-
Methods inherited from class com.pi4j.io.gpio.trigger.GpioTriggerBase
addPinState, addPinState, hasPinState
-
-
-
-
Constructor Detail
-
GpioSetStateTrigger
public GpioSetStateTrigger(GpioPinDigitalOutput targetPin, PinState targetPinState)
-
GpioSetStateTrigger
public GpioSetStateTrigger(PinState state, GpioPinDigitalOutput targetPin, PinState targetPinState)
-
GpioSetStateTrigger
public GpioSetStateTrigger(PinState[] states, GpioPinDigitalOutput targetPin, PinState targetPinState)
-
GpioSetStateTrigger
public GpioSetStateTrigger(List<PinState> states, GpioPinDigitalOutput targetPin, PinState targetPinState)
-
-
Method Detail
-
getTargetPinState
public PinState getTargetPinState()
-
invoke
public void invoke(GpioPin pin, PinState state)
- Specified by:
invoke
in interfaceGpioTrigger
- Specified by:
invoke
in classGpioTriggerBase
-
-