Uses of Interface
com.diozero.api.InputEventListener
Package | Description |
---|---|
com.diozero.api |
Lower-level APIs for interfacing with devices.
|
com.diozero.devices | |
com.diozero.devices.sandpit | |
com.diozero.internal.provider |
Service Provider Interface package.
|
com.diozero.internal.provider.mcp23xxx |
-
Uses of InputEventListener in com.diozero.api
Classes in com.diozero.api that implement InputEventListener Modifier and Type Class Description class
AbstractDigitalInputDevice
class
AnalogInputDevice
The AnalogInputDevice base class encapsulates logic for interfacing with analog devices.class
DigitalInputDevice
Represents a generic digital input device.class
DigitalInputOutputDevice
class
GpioInputDevice<T extends DeviceEvent>
Common base class for digital and analog input devices.class
SmoothedInputDevice
Represents a generic input device which takes its value from the number of active events over a specific time period.class
WaitableDigitalInputDevice
Represents a digital input device with distinct waitable states (active / inactive).Methods in com.diozero.api with parameters of type InputEventListener Modifier and Type Method Description void
AnalogInputDevice. addListener(InputEventListener<AnalogInputEvent> listener, float percentChange)
Register a listener for value changes, will check for changes every 50ms.void
AnalogInputDevice. addListener(InputEventListener<AnalogInputEvent> listener, float percentChange, int pollInterval)
Register a listener for value changes, will check for changes every 50ms.void
GpioInputDevice. addListener(InputEventListener<T> listener)
Add a new listener.void
GpioInputDevice. removeListener(InputEventListener<T> listener)
Remove a specific listener. -
Uses of InputEventListener in com.diozero.devices
Classes in com.diozero.devices that implement InputEventListener Modifier and Type Class Description class
Button
Provides push button related utility methods.class
GP2Y0A21YK
Sharp GP2Y0A21YK distance sensor.class
LDR
Generic Photoresistor / Light-Dependent-Resistor (LDR).
Wiring:class
MCP23008
class
MCP23017
class
MCP23S17
class
Potentiometer
Supports taking readings from a potentiometer.class
TMP36
Support for reading temperature values from a TMP36 Temperature Sensor by Analog DevicesMethods in com.diozero.devices with parameters of type InputEventListener Modifier and Type Method Description void
PiconZero.PiconZeroDigitalInputDevice. setListener(InputEventListener<DigitalInputEvent> listener)
-
Uses of InputEventListener in com.diozero.devices.sandpit
Classes in com.diozero.devices.sandpit that implement InputEventListener Modifier and Type Class Description class
DebouncedDigitalInputDevice
Represents a generic input device with typical on/off behaviour.class
HCSR04UsingEvents
Note this version doesn't work as well as the polling-based HCSR04 version.class
MotionSensor
A Passive Infra-Red (PIR) motion sensor.class
TCS3200
This class reads RGB values from a TCS3200 colour sensor. -
Uses of InputEventListener in com.diozero.internal.provider
Methods in com.diozero.internal.provider with parameters of type InputEventListener Modifier and Type Method Description void
AbstractInputDevice. setListener(InputEventListener<T> listener)
void
AnalogInputDeviceInterface. setListener(InputEventListener<AnalogInputEvent> listener)
void
GpioDigitalInputDeviceInterface. setListener(InputEventListener<DigitalInputEvent> listener)
void
GpioDigitalInputOutputDeviceInterface. setListener(InputEventListener<DigitalInputEvent> listener)
-
Uses of InputEventListener in com.diozero.internal.provider.mcp23xxx
Classes in com.diozero.internal.provider.mcp23xxx that implement InputEventListener Modifier and Type Class Description class
MCP23x08
class
MCP23x17
class
MCP23xxx
Support for both MCP23008 and MCP23017 GPIO expansion boards.