Package | Description |
---|---|
com.diozero |
Classes representing actual devices such as LEDs, Buttons as well as GPIO,
SPI and I2C connected devices.
|
com.diozero.api |
Lower-level APIs for interfacing with devices.
|
com.diozero.internal.provider |
Service Provider Interface package.
|
com.diozero.internal.provider.mcp23xxx | |
com.diozero.legacy | |
com.diozero.sandpit |
Modifier and Type | Class and 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 Devices
|
Modifier and Type | Method and Description |
---|---|
void |
PiconZero.PiconZeroDigitalInputDevice.setListener(InputEventListener<DigitalInputEvent> listener) |
Modifier and Type | Class and 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).
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
GpioDigitalInputOutputDeviceInterface.setListener(InputEventListener<DigitalInputEvent> listener) |
void |
GpioDigitalInputDeviceInterface.setListener(InputEventListener<DigitalInputEvent> listener) |
void |
AbstractInputDevice.setListener(InputEventListener<T> listener) |
Modifier and Type | Class and Description |
---|---|
class |
MCP23x08 |
class |
MCP23x17 |
class |
MCP23xxx
Support for both MCP23008 and MCP23017 GPIO expansion boards.
|
Modifier and Type | Class and Description |
---|---|
class |
MCP23008Old
|
class |
MCP23017Old
|
Modifier and Type | Class and Description |
---|---|
class |
DebouncedDigitalInputDevice
Represents a generic input device with typical on/off behaviour.
|
class |
MotionSensor
A Passive Infra-Red (PIR) motion sensor.
|
class |
TCS3200
This class reads RGB values from a TCS3200 colour sensor.
|
Copyright © 2016–2017 mattjlewis. All rights reserved.