Uses of Interface
com.diozero.api.DeviceInterface
Package | Description |
---|---|
com.diozero.api |
APIs for interfacing with the host board.
|
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.imu | |
com.diozero.devices.mcp23xxx | |
com.diozero.devices.motor | |
com.diozero.devices.oled | |
com.diozero.devices.sandpit | |
com.diozero.internal | |
com.diozero.internal.board.odroid | |
com.diozero.internal.provider.builtin |
The built-in default provider supporting GPIO, I2C, SPI and Serial device
communication.
|
com.diozero.internal.provider.builtin.i2c | |
com.diozero.internal.spi |
Service Provider Interface package.
|
-
Uses of DeviceInterface in com.diozero.api
Subinterfaces of DeviceInterface in com.diozero.api Modifier and Type Interface Description interface
DigitalInputDeviceInterface
Base interface for devices with digital input.interface
I2CDeviceInterface
interface
I2CSMBusInterface
I2C device interface Linux SMBus interfaceinterface
SerialDeviceInterface
interface
SpiDeviceInterface
Classes in com.diozero.api that implement DeviceInterface Modifier and Type Class Description class
AbstractDigitalInputDevice
Abstract base class for low-level GPIO digital input devices.class
AnalogInputDevice
The AnalogInputDevice base class encapsulates logic for interfacing with analog devices.class
DigitalInputDevice
Represents a generic digital input device.class
DigitalInputOutputDevice
class
DigitalOutputDevice
Provides generic digital (on/off) output control with support for active high and low logic.class
GpioDevice
Abstract base class for all GPIO related devices.class
GpioInputDevice<T extends DeviceEvent>
Common base class for digital and analog input devices.class
I2CDevice
Utility class for interfacing with to I2C devices.class
PwmOutputDevice
Provide generic Pulse Width Modulation (PWM) output control.class
SerialDevice
Serial device.class
Servo
class
SmoothedInputDevice
Represents a generic input device which takes its value from the number of active events over a specific time period.class
SpiDevice
Serial Peripheral Interface deviceclass
WaitableDigitalInputDevice
Represents a digital input device with distinct waitable states (active / inactive). -
Uses of DeviceInterface in com.diozero.devices
Subinterfaces of DeviceInterface in com.diozero.devices Modifier and Type Interface Description interface
BarometerInterface
interface
DistanceSensorInterface
interface
GpioExpander
Interface for GPIO expansion boards such as the MCP23xxx family of devicesinterface
HygrometerInterface
interface
LuminositySensorInterface
interface
SensorInterface
interface
ThermometerInterface
Classes in com.diozero.devices that implement DeviceInterface Modifier and Type Class Description class
Ads112C04
class
Ads1x15
ADS1115 Datasheet: https://www.ti.com/lit/ds/symlink/ads1115.pdf ADS1015 Datasheet: https://www.ti.com/lit/ds/symlink/ads1015.pdfclass
BH1750
BH1750 Luminosity sensor Datasheet Python codeclass
BME280
Provides access to the Bosch BMx280 pressure and temperature sensor.class
BME680
class
BMP180
Bosch BMP180 I2C temperature and pressure sensorclass
Button
Provides push button related utility methods.class
Buzzer
Represents a digital buzzer component.class
GP2Y0A21YK
Sharp GP2Y0A21YK distance sensor.class
HCSR04
User's manual: https://docs.google.com/document/d/1Y-yZnNhMYy7rwhAgyL_pfa39RsB-x2qR4vP8saG73rE/edit# Product specification: http://www.micropik.com/PDF/HCSR04.pdf Provides 2cm - 400cm non-contact measurement function, the ranging accuracy can reach to 3mm You only need to supply a short 10uS pulse to the trigger input to start the ranging, and then the module will send out an 8 cycle burst of ultrasound at 40 kHz and raise its echo.class
HD44780Lcd
class
HTS221
STMicroelectronics HTS221 "ultra compact sensor for relative humidity and temperature".class
Keypad
References:class
LDR
Generic Photoresistor / Light-Dependent-Resistor (LDR).
Wiring:class
LED
Provides utility methods for controlling a Light Emitting Diode (LED).class
LedBarGraph
class
LM73
class
LPS25H
STMicroelectronics LPS25H "ultra compact absolute piezoresistive pressure sensor".class
MCP23008
class
MCP23017
class
MCP23S17
class
McpAdc
class
McpEeprom
See the Microchip website.class
MFRC522
class
PCA9685
PCA9685 I2C-bus controlled 16-channel 12-bit PWM controller as used in the popular Adafruit PWM add-on board Datasheet: http://www.nxp.com/documents/data_sheet/PCA9685.pdfclass
PCF8574
class
PCF8591
Analog to Digital Converter.class
PiconZero
static class
PiconZero.PiconZeroAnalogInputDevice
static class
PiconZero.PiconZeroAnalogOutputDevice
static class
PiconZero.PiconZeroDigitalInputDevice
static class
PiconZero.PiconZeroDigitalOutputDevice
static class
PiconZero.PiconZeroPwmOutputDevice
class
Potentiometer
Supports taking readings from a potentiometer.class
PwmLed
PWM controlled LED.class
PwmLedBarGraph
class
RgbLed
Three pin controlled RGB LED.class
RgbPwmLed
Three pin controlled RGB LED.class
SGP30
class
TMP36
Support for reading temperature values from a TMP36 Temperature Sensor by Analog Devicesclass
TSL2561
class
W1ThermSensor
-
Uses of DeviceInterface in com.diozero.devices.imu
Subinterfaces of DeviceInterface in com.diozero.devices.imu Modifier and Type Interface Description interface
ImuInterface
Classes in com.diozero.devices.imu that implement DeviceInterface Modifier and Type Class Description class
ADXL345
http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.PDFclass
ImuBase
-
Uses of DeviceInterface in com.diozero.devices.mcp23xxx
Classes in com.diozero.devices.mcp23xxx that implement DeviceInterface Modifier and Type Class Description class
MCP23x08
class
MCP23x17
class
MCP23xxx
Support for both MCP23008 and MCP23017 GPIO expansion boards.class
MCP23xxxDigitalInputDevice
class
MCP23xxxDigitalInputOutputDevice
class
MCP23xxxDigitalOutputDevice
-
Uses of DeviceInterface in com.diozero.devices.motor
Subinterfaces of DeviceInterface in com.diozero.devices.motor Modifier and Type Interface Description interface
MotorInterface
Classes in com.diozero.devices.motor that implement DeviceInterface Modifier and Type Class Description class
CamJamKitDualMotor
CamJam EduKit 3 Robot.class
DigitalMotor
class
DualMotor
Generic dual bi-directional motor driverclass
MotorBase
class
PiconZeroMotor
class
PwmMotor
Generic bi-directional motor controlled by separate forward / backward PWM output GPIOsclass
RyanteckDualMotor
RTK MCB Robot.class
TB6612FNGDualMotorDriver
Dual bi-directional motor controlled by a single PWM pin and separate forward / backward GPIO pins Toshiba TB6612FNG Dual Motor Driver such as this one from Pololu: https://www.pololu.com/product/713class
TB6612FNGMotor
Bi-directional motor controlled by a single PWM pin and separate forward / backward GPIO pins Toshiba TB6612FNG Dual Motor Driver such as @see this one from Pololu Turn forward, set pin 1 to HIGH, pin 2 to LOW, and PWM to >0 Turn backward, set pin 1 to LOW, pin 2 to HIGH, PWM to >0 -
Uses of DeviceInterface in com.diozero.devices.oled
Classes in com.diozero.devices.oled that implement DeviceInterface Modifier and Type Class Description class
ColourSsdOled
class
SSD1306
128x64 Dot Matrix OLED/PLED Segment/Common Driver (128 segments and 64 commons).
Segment = column (x), Common = row (y)class
SSD1331
Encapsulates the serial interface to the 16-bit colour (5-6-5 RGB) SSD1331 96x64 OLED display hardware.class
SSD1351
Encapsulates the serial interface to the 16-bit (5-6-5 RGB) and 18-bit (6-6-6 RGB) colour SSD1351 128x128 OLED display hardware.class
SsdOled
-
Uses of DeviceInterface in com.diozero.devices.sandpit
Classes in com.diozero.devices.sandpit that implement DeviceInterface 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
HCSR04UsingWait
User's manual: https://docs.google.com/document/d/1Y-yZnNhMYy7rwhAgyL_pfa39RsB-x2qR4vP8saG73rE/edit# Product specification: http://www.micropik.com/PDF/HCSR04.pdf Provides 2cm - 400cm non-contact measurement function, the ranging accuracy can reach to 3mm You only need to supply a short 10uS pulse to the trigger input to start the ranging, and then the module will send out an 8 cycle burst of ultrasound at 40 kHz and raise its echo.class
Max30102
class
MotionSensor
A Passive Infra-Red (PIR) motion sensor.class
SilentStepStick
Stepper represents a stepper motor driven by a stepper motor controller.class
ST7735
class
ST77xx
class
TCS3200
This class reads RGB values from a TCS3200 colour sensor.class
VL6180
Datasheet: https://www.st.com/resource/en/datasheet/vl6180.pdf -
Uses of DeviceInterface in com.diozero.internal
Classes in com.diozero.internal that implement DeviceInterface Modifier and Type Class Description class
SoftwarePwmOutputDevice
Generate a very poor approximation of a PWM signal - use at your own risk! All timing is in milliseconds hence it is strongly recommend to use a frequency of 50Hz to minimise integer rounding errors. -
Uses of DeviceInterface in com.diozero.internal.board.odroid
Classes in com.diozero.internal.board.odroid that implement DeviceInterface Modifier and Type Class Description class
OdroidC2SysFsPwmOutputDevice
Setting up: 1 PWM Channel (GPIO 234; Pin 33): -
Uses of DeviceInterface in com.diozero.internal.provider.builtin
Classes in com.diozero.internal.provider.builtin that implement DeviceInterface Modifier and Type Class Description class
DefaultNativeSerialDevice
class
DefaultNativeSpiDevice
class
NativeGpioInputDevice
class
NativeGpioInputOutputDevice
class
NativeGpioOutputDevice
class
SysFsAnalogInputDevice
class
SysFsDigitalInputDevice
Pure Java implementation using the sysfs (/sys/class/gpio) kernel module.class
SysFsDigitalInputOutputDevice
class
SysFsDigitalOutputDevice
class
SysFsPwmOutputDevice
-
Uses of DeviceInterface in com.diozero.internal.provider.builtin.i2c
Classes in com.diozero.internal.provider.builtin.i2c that implement DeviceInterface Modifier and Type Class Description class
NativeI2CDeviceJavaRaf
Deprecated.class
NativeI2CDeviceSMBus
JNI wrapper of SMBus interface. -
Uses of DeviceInterface in com.diozero.internal.spi
Subinterfaces of DeviceInterface in com.diozero.internal.spi Modifier and Type Interface Description interface
AnalogInputDeviceInterface
interface
AnalogOutputDeviceInterface
interface
GpioDeviceInterface
interface
GpioDigitalDeviceInterface
interface
GpioDigitalInputDeviceInterface
interface
GpioDigitalInputOutputDeviceInterface
interface
GpioDigitalOutputDeviceInterface
interface
InternalDeviceInterface
Fundamental interface for all low-level device types.interface
InternalI2CDeviceInterface
interface
InternalSerialDeviceInterface
interface
InternalSpiDeviceInterface
interface
PwmOutputDeviceInterface
Classes in com.diozero.internal.spi that implement DeviceInterface Modifier and Type Class Description class
AbstractDevice
class
AbstractInputDevice<T extends DeviceEvent>