Uses of Interface
com.diozero.api.function.Action
Package | Description |
---|---|
com.diozero.api |
APIs for interfacing with the host board.
|
com.diozero.api.function | |
com.diozero.devices |
Classes representing actual devices such as LEDs, Buttons as well as GPIO,
devices that are connected via I2C, SPI and Serial interfaces.
|
com.diozero.devices.motor |
-
Uses of Action in com.diozero.api
Methods in com.diozero.api with parameters of type Action Modifier and Type Method Description void
DigitalOutputDevice. onOffLoop(float onTime, float offTime, int n, boolean background, Action stopAction)
Toggle the device on-off. -
Uses of Action in com.diozero.api.function
Methods in com.diozero.api.function that return Action Modifier and Type Method Description default Action
Action. andThen(Action after)
Returns a composedAction
that performs, in sequence, this operation followed by theafter
operation.Methods in com.diozero.api.function with parameters of type Action Modifier and Type Method Description default Action
Action. andThen(Action after)
Returns a composedAction
that performs, in sequence, this operation followed by theafter
operation. -
Uses of Action in com.diozero.devices
Methods in com.diozero.devices with parameters of type Action Modifier and Type Method Description void
LED. blink(float onTime, float offTime, int n, boolean background, Action stopAction)
Blink.void
LED. blink(Action stopAction)
Blink indefinitely with 1 second on and 1 second off.void
LedBarGraph. blink(float onTime, float offTime, int iterations, Action stopAction)
-
Uses of Action in com.diozero.devices.motor
Methods in com.diozero.devices.motor with parameters of type Action Modifier and Type Method Description void
MotorBase. whenBackward(Action action)
void
MotorInterface. whenBackward(Action action)
void
MotorBase. whenForward(Action action)
void
MotorInterface. whenForward(Action action)
void
MotorBase. whenStop(Action action)
void
MotorInterface. whenStop(Action action)