Uses of Class
com.diozero.util.RuntimeIOException
Package | Description |
---|---|
com.diozero.api |
Lower-level APIs for interfacing with devices.
|
com.diozero.api.imu | |
com.diozero.api.motor | |
com.diozero.devices | |
com.diozero.devices.sandpit | |
com.diozero.internal.board.odroid | |
com.diozero.internal.provider |
Service Provider Interface package.
|
com.diozero.internal.provider.mcp23xxx | |
com.diozero.internal.provider.sysfs |
-
Uses of RuntimeIOException in com.diozero.api
Subclasses of RuntimeIOException in com.diozero.api Modifier and Type Class Description class
DeviceAlreadyOpenedException
class
DeviceBusyException
class
InvalidModeException
Methods in com.diozero.api that throw RuntimeIOException Modifier and Type Method Description void
AnalogInputDevice. close()
void
DigitalInputDeviceInterface. close()
void
DigitalInputOutputDevice. close()
void
GpioExpander. close()
void
I2CDevice. close()
void
SpiDevice. close()
protected void
PwmOutputDevice. fadeInOutLoop(float fadeTime, int steps, int iterations, boolean background)
float
DistanceSensorInterface. getDistanceCm()
float
LuminositySensorInterface. getLuminosity()
float
BarometerInterface. getPressure()
Get the pressure in kPafloat
AnalogInputDevice. getScaledValue()
Get the scaled value in the range 0..range (if unsigned) or -range..range (if signed)float
ThermometerInterface. getTemperature()
Get temperature in degrees celsiusfloat
AnalogInputDevice. getUnscaledValue()
Get the unscaled normalised value in the range 0..1 (if unsigned) or -1..1 (if signed)boolean
DigitalInputDevice. getValue()
Read the current underlying state of the input pin.boolean
DigitalInputDeviceInterface. getValue()
boolean
DigitalInputOutputDevice. getValue()
Read the current underlying state of the input pin.float
PwmOutputDevice. getValue()
Get the current PWM output value (0..1).boolean
DigitalInputDevice. isActive()
Read the current on/off state for this device taking into account the pull up / down configuration.boolean
DigitalOutputDevice. isOn()
Get the device on / off status.boolean
PwmOutputDevice. isOn()
Get the device on / off status.void
DigitalOutputDevice. off()
Turn off the device.void
PwmOutputDevice. off()
Turn off the device (same assetValue(0)
).void
DigitalOutputDevice. on()
Turn on the device.void
PwmOutputDevice. on()
Turn on the device (same assetValue(1)
).void
DigitalOutputDevice. onOffLoop(float onTime, float offTime, int n, boolean background, Action stopAction)
Toggle the device on-off.protected void
PwmOutputDevice. onOffLoop(float onTime, float offTime, int n, boolean background)
byte[]
I2CDevice. read(int count)
byte[]
I2CDevice. read(int address, int subAddressSize, int count)
void
I2CDevice. read(int address, int subAddressSize, java.nio.ByteBuffer buffer)
void
I2CDevice. read(int address, java.nio.ByteBuffer dst)
void
I2CDevice. read(java.nio.ByteBuffer dst)
boolean
I2CDevice. readBit(int regAddr, int bitNum)
Read a single bit from an 8-bit device registerbyte
I2CDevice. readBits(int regAddr, int bitStart, int length)
Read multiple bits from an 8-bit device registerbyte
I2CDevice. readByte()
byte
I2CDevice. readByte(int regAddr)
Read a single byte from an 8-bit device registerbyte
I2CDevice. readByte(int register, int subAddressSize)
byte[]
I2CDevice. readBytes(int regAddr, int length)
Read multiple bytes from an 8-bit device registershort
I2CDevice. readShort(int address)
short
I2CDevice. readShort(int address, int subAddressSize)
short
I2CDevice. readShort(int address, int subAddressSize, java.nio.ByteOrder order)
short
I2CDevice. readUByte(int regAddr)
long
I2CDevice. readUInt(int address)
long
I2CDevice. readUInt(int address, int subAddressSize, int length)
long
I2CDevice. readUInt(int address, int subAddressSize, int length, java.nio.ByteOrder order)
long
I2CDevice. readUInt(int address, java.nio.ByteOrder order)
int
I2CDevice. readUShort(int address)
int
I2CDevice. readUShort(int address, int subAddressSize)
int
I2CDevice. readUShort(int address, int subAddressSize, java.nio.ByteOrder order)
void
DigitalOutputDevice. setOn(boolean on)
Turn the device on or off.void
DigitalInputOutputDevice. setValue(boolean value)
Set the output value (if mode.void
PwmOutputDevice. setValue(float value)
Set the PWM output value (0..1).protected void
PwmOutputDevice. setValueInternal(float value)
void
DigitalOutputDevice. setValueUnsafe(boolean value)
Unsafe operation that has no synchronisation checks and doesn't compensate for active low logic.void
DigitalOutputDevice. toggle()
Toggle the state of the device.void
PwmOutputDevice. toggle()
Toggle the state of the device (same assetValue(1 - getvalue())
).void
I2CDevice. write(byte[] data)
void
I2CDevice. write(byte[] data, java.nio.ByteOrder order)
void
I2CDevice. write(int register, int subAddressSize, byte value)
Writes a single byte to a registervoid
I2CDevice. write(int register, int subAddressSize, byte[] value)
Writes a single byte to a registervoid
I2CDevice. write(int registerAddress, int addressSize, java.nio.ByteBuffer buffer, int payloadLength, java.nio.ByteOrder order)
void
I2CDevice. write(int registerAddress, java.nio.ByteBuffer buffer, int payloadLength)
void
I2CDevice. write(java.nio.ByteBuffer buffer, int payloadLength)
void
I2CDevice. write(java.nio.ByteBuffer buffer, int payloadLength, java.nio.ByteOrder order)
void
SpiDevice. write(byte[] txBuffer)
void
SpiDevice. write(byte[] txBuffer, int txOffset, int length)
byte[]
SpiDevice. writeAndRead(byte[] out)
void
I2CDevice. writeBit(int regAddr, int bitNum, boolean value)
write a single bit in an 8-bit device registervoid
I2CDevice. writeBit(int regAddr, int bitNum, int value)
write a single bit in an 8-bit device registervoid
I2CDevice. writeBits(int regAddr, int bitStart, int length, int data)
Write multiple bits in an 8-bit device registervoid
I2CDevice. writeByte(byte data)
void
I2CDevice. writeByte(int regAddr, byte data)
Write a single byte to an 8-bit device registervoid
I2CDevice. writeByte(int regAddr, int data)
Write a single byte to an 8-bit device registervoid
I2CDevice. writeBytes(int regAddr, int length, byte[] data)
Write multiple bytes to an 8-bit device registervoid
I2CDevice. writeBytes(int regAddr, int length, byte[] data, int offset)
void
I2CDevice. writeShort(int regAddr, short val)
void
I2CDevice. writeWord(int regAddr, int data)
Write a single word to a 16-bit device registerConstructors in com.diozero.api that throw RuntimeIOException Constructor Description AnalogInputDevice(int gpio)
AnalogInputDevice(int gpio, float range)
AnalogInputDevice(AnalogInputDeviceFactoryInterface deviceFactory, int gpio)
AnalogInputDevice(AnalogInputDeviceFactoryInterface deviceFactory, int gpio, float range)
DigitalInputDevice(int gpio)
DigitalInputDevice(int gpio, GpioPullUpDown pud, GpioEventTrigger trigger)
DigitalInputDevice(GpioDeviceFactoryInterface deviceFactory, int gpio, GpioPullUpDown pud, GpioEventTrigger trigger)
DigitalInputOutputDevice(int gpio, DeviceMode mode)
DigitalInputOutputDevice(GpioDeviceFactoryInterface deviceFactory, int gpio, DeviceMode mode)
DigitalOutputDevice(int gpio)
Defaults to active high logic, initial value is off.DigitalOutputDevice(int gpio, boolean activeHigh, boolean initialValue)
DigitalOutputDevice(GpioDeviceFactoryInterface deviceFactory, int gpio, boolean activeHigh, boolean initialValue)
I2CDevice(int controller, int address)
I2CDevice(int controller, int address, int addressSize, int clockFrequency)
I2CDevice(int controller, int address, int addressSize, int clockFrequency, java.nio.ByteOrder order)
I2CDevice(int controller, int address, java.nio.ByteOrder order)
I2CDevice(I2CDeviceFactoryInterface deviceFactory, int controller, int address, int addressSize, int clockFrequency, java.nio.ByteOrder order)
PwmOutputDevice(int gpio)
PwmOutputDevice(int gpio, float initialValue)
PwmOutputDevice(int gpio, int pwmFrequency, float initialValue)
PwmOutputDevice(PwmOutputDeviceFactoryInterface pwmDeviceFactory, int gpio, float initialValue)
PwmOutputDevice(PwmOutputDeviceFactoryInterface pwmDeviceFactory, int gpio, int pwmFrequency, float initialValue)
SmoothedInputDevice(int gpio, GpioPullUpDown pud, int threshold, int eventAge, int eventDetectPeriod)
SmoothedInputDevice(GpioDeviceFactoryInterface deviceFactory, int gpio, GpioPullUpDown pud, int threshold, int eventAge, int eventDetectPeriod)
SpiDevice(int chipSelect)
SpiDevice(int controller, int chipSelect)
SpiDevice(int controller, int chipSelect, int frequency, SpiClockMode mode, boolean lsbFirst)
WaitableDigitalInputDevice(int gpio)
WaitableDigitalInputDevice(int gpio, GpioPullUpDown pud, GpioEventTrigger trigger)
WaitableDigitalInputDevice(GpioDeviceFactoryInterface deviceFactory, int gpio, GpioPullUpDown pud, GpioEventTrigger trigger)
-
Uses of RuntimeIOException in com.diozero.api.imu
Methods in com.diozero.api.imu that throw RuntimeIOException Modifier and Type Method Description org.apache.commons.math3.geometry.euclidean.threed.Vector3D
ImuInterface. getAccelerometerData()
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
ImuInterface. getCompassData()
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
ImuInterface. getGyroData()
ImuData
ImuInterface. getImuData()
-
Uses of RuntimeIOException in com.diozero.api.motor
Methods in com.diozero.api.motor that throw RuntimeIOException Modifier and Type Method Description void
DigitalMotor. backward()
void
DualMotor. backward(float speed)
void
MotorInterface. backward(float speed)
void
PwmMotor. backward()
Backward at full speedvoid
PwmMotor. backward(float speed)
void
DualMotor. backwardLeft(float speed)
void
DualMotor. backwardRight(float speed)
void
DigitalMotor. forward()
void
DualMotor. forward(float speed)
void
MotorInterface. forward(float speed)
void
PwmMotor. forward()
Forward at full speedvoid
PwmMotor. forward(float speed)
void
DualMotor. forwardLeft(float speed)
void
DualMotor. forwardRight(float speed)
float
DigitalMotor. getValue()
Represents the speed of the motor as a floating point value between -1 (full speed backward) and 1 (full speed forward)float
MotorInterface. getValue()
float
PwmMotor. getValue()
Represents the speed of the motor as a floating point value between -1 (full speed backward) and 1 (full speed forward).float[]
DualMotor. getValues()
boolean
DigitalMotor. isActive()
boolean
MotorInterface. isActive()
boolean
PwmMotor. isActive()
void
DigitalMotor. reverse()
void
DualMotor. reverse()
void
MotorBase. reverse()
Reverse direction of the motorsvoid
MotorInterface. reverse()
void
DualMotor. rotateLeft(float speed)
void
DualMotor. rotateRight(float speed)
void
MotorBase. setValue(float value)
Set the speed of the motor as a floating point value between -1 (full speed backward) and 1 (full speed forward)void
MotorInterface. setValue(float value)
void
DualMotor. setValues(float leftValue, float rightValue)
Set the speed and direction for both motors (clockwise / counter-clockwise)void
DigitalMotor. stop()
void
DualMotor. stop()
void
MotorInterface. stop()
void
PwmMotor. stop()
Constructors in com.diozero.api.motor that throw RuntimeIOException Constructor Description DigitalMotor(int forwardGpio, int backwardGpio)
DigitalMotor(GpioDeviceFactoryInterface deviceFactory, int forwardGpio, int backwardGpio)
PwmMotor(int forwardPwmGpio, int backwardPwmGpio)
PwmMotor(PwmOutputDeviceFactoryInterface deviceFactory, int forwardPwmGpio, int backwardPwmGpio)
-
Uses of RuntimeIOException in com.diozero.devices
Methods in com.diozero.devices that throw RuntimeIOException Modifier and Type Method Description void
PiconZeroMotor. backward(float speed)
void
Buzzer. beep()
Beep repeatedly in a background thread.void
Buzzer. beep(float onTime, float offTime, int n, boolean background)
Beep.void
LED. blink()
Blink indefinitely with 1 second on and 1 second off.void
LED. blink(float onTime, float offTime, int n, boolean background)
Blink.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
PwmLed. blink()
Blink the LED on and off indefinitely.void
PwmLed. blink(float onTime, float offTime, int iterations, boolean background)
Blink the LED on and off repeatedly.void
BME280. close()
void
HD44780Lcd. close()
void
HD44780Lcd.LcdConnection. close()
void
HD44780Lcd.PCF8574LcdConnection. close()
void
HD44780Lcd.PiFaceCadLcdConnection. close()
void
LedBarGraph. close()
void
MCP23008. close()
void
MCP23017. close()
void
MCP23S17. close()
void
McpAdc. close()
void
PCA9685. close()
void
PCF8591. close()
void
PiconZero. close()
void
PwmLedBarGraph. close()
void
PCA9685. closeChannel(int channel)
protected void
PiconZero.PiconZeroAnalogOutputDevice. closeDevice()
protected void
PiconZero.PiconZeroPwmOutputDevice. closeDevice()
AnalogInputDeviceInterface
McpAdc. createAnalogInputDevice(java.lang.String key, PinInfo pinInfo)
AnalogInputDeviceInterface
PCF8591. createAnalogInputDevice(java.lang.String key, PinInfo pinInfo)
AnalogOutputDeviceInterface
PCF8591. createAnalogOutputDevice(java.lang.String key, PinInfo pinInfo)
AnalogOutputDeviceInterface
PiconZero. createAnalogOutputDevice(java.lang.String key, PinInfo pinInfo)
GpioDigitalInputDeviceInterface
PCF8574. createDigitalInputDevice(java.lang.String key, PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger)
GpioDigitalInputDeviceInterface
PiconZero. createDigitalInputDevice(java.lang.String key, PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger)
GpioDigitalInputOutputDeviceInterface
PCF8574. createDigitalInputOutputDevice(java.lang.String key, PinInfo pinInfo, DeviceMode mode)
GpioDigitalInputOutputDeviceInterface
PiconZero. createDigitalInputOutputDevice(java.lang.String key, PinInfo pinInfo, DeviceMode mode)
GpioDigitalOutputDeviceInterface
PCF8574. createDigitalOutputDevice(java.lang.String key, PinInfo pinInfo, boolean initialValue)
GpioDigitalOutputDeviceInterface
PiconZero. createDigitalOutputDevice(java.lang.String key, PinInfo pinInfo, boolean initialValue)
PwmOutputDeviceInterface
PCA9685. createPwmOutputDevice(java.lang.String key, PinInfo pinInfo, int pwmFrequency, float initialValue)
PwmOutputDeviceInterface
PiconZero. createPwmOutputDevice(java.lang.String key, PinInfo pinInfo, int pwmFrequency, float initialValue)
void
PiconZeroMotor. forward(float speed)
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
ADXL345. getAccelerometerData()
ADXL345.OutputDataRateType
ADXL345. getBandwidthDataRate()
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
ADXL345. getCompassData()
float
GP2Y0A21YK. getDistanceCm()
Read distance in centimetres, range 10 to 80cm.float
HCSR04. getDistanceCm()
Send a pulse to HCSR04 and compute the echo to obtain distanceorg.apache.commons.math3.geometry.euclidean.threed.Vector3D
ADXL345. getGyroData()
ImuData
ADXL345. getImuData()
float
LDR. getLdrResistance()
Read the resistance across the LDR.float
BH1750. getLuminosity()
float
TSL2561. getLuminosity()
Converts the raw sensor values to the standard SI lux equivalent.float
BMP180. getPressure()
Read the barometric pressure (in hPa) from the device.float
TMP36. getScaledValue()
float
BMP180. getTemperature()
Method for reading the temperature.float
LM73. getTemperature()
float
TMP36. getTemperature()
Get the current temperature in °C.float
W1ThermSensor. getTemperature()
Get temperature in degrees celsiusfloat
McpAdc. getValue(int adcPin)
Read the analog value in the range 0..1 or -1..1 (if the ADC type is signed)float
PCA9685. getValue(int channel)
float
PCF8591. getValue(int adcPin)
Read the analog value in the range 0..1float
PiconZero.PiconZeroAnalogInputDevice. getValue()
float
PiconZero.PiconZeroAnalogOutputDevice. getValue()
boolean
PiconZero.PiconZeroDigitalInputDevice. getValue()
float
PiconZero.PiconZeroPwmOutputDevice. getValue()
float
PiconZeroMotor. getValue()
Get the relative output value for the motorboolean[]
RgbLed. getValues()
Get the state of all LEDs.float[]
RgbPwmLed. getValues()
Get the value of all LEDs.boolean
PiconZeroMotor. isActive()
boolean
LED. isLit()
Return true if the LED is currently on.boolean
PwmLed. isLit()
Return true if the PWM value is >0.void
RgbLed. off()
Turn all LEDs off.void
RgbPwmLed. off()
Turn all LEDs off.void
RgbLed. on()
Turn all LEDs on.void
RgbPwmLed. on()
Turn all LEDs on.AnalogInputDeviceInterface
PiconZero. provisionAnalogInputDevice(int gpio)
void
PwmLed. pulse()
Pulse the LED on and off indefinitely in a background thread with a fade time of 1 second.void
PwmLed. pulse(float fadeTime, int steps, int iterations, boolean background)
Pulse the LED on and off repeatedly.void
BMP180. readCalibrationData()
This method reads the calibration data common for the Temperature sensor and Barometer sensor included in the BMP180void
ADXL345. setBandwidthRate(ADXL345.OutputDataRateType dataRate)
void
TSL2561. setGain(int gain)
Adjusts the gain on the TSL2561 (adjusts the sensitivity to light)void
ADXL345. setNormalMeasurementMode()
void
ADXL345. setPowerControlFlags(byte powerControlValue)
void
PCA9685. setServoPulseWidthMs(int channel, double pulseWidthMs)
Set the pulse duration (micro-seconds) E.g.void
PCA9685. setValue(int channel, float value)
Set PWM output on a specific channel, value must be 0..1void
PCF8591. setValue(int dacPin, float value)
Set the analog output value.void
PiconZero.PiconZeroAnalogOutputDevice. setValue(float value)
void
PiconZero.PiconZeroPwmOutputDevice. setValue(float value)
void
RgbLed. setValues(boolean red, boolean green, boolean blue)
Set the state of all LEDs.void
RgbPwmLed. setValues(float red, float green, float blue)
Set the value of all LEDs.void
PiconZeroMotor. stop()
void
RgbLed. toggle()
Toggle the state of all LEDs.void
RgbPwmLed. toggle()
Toggle the state of all LEDs.Constructors in com.diozero.devices that throw RuntimeIOException Constructor Description BMP180(int controllerNumber, int clockFrequency, BMP180.BMPMode mode)
BMP180(BMP180.BMPMode mode)
ConstructorButton(int gpio)
Pull up / down configuration defaults to NONE.Button(int gpio, GpioPullUpDown pud)
Button(GpioDeviceFactoryInterface deviceFactory, int gpio, GpioPullUpDown pud)
Buzzer(int gpio)
Buzzer(int gpio, boolean activeHigh)
CamJamKitDualMotor()
GP2Y0A21YK(int gpio)
GP2Y0A21YK(AnalogInputDeviceFactoryInterface deviceFactory, int gpio)
HCSR04(int triggerGpioNum, int echoGpioNum)
Initialise GPIO to echo and trigger pinsHTS221(int controller, int address)
LDR(int gpio, float r1)
LDR(AnalogInputDeviceFactoryInterface deviceFactory, int gpio, float r1)
LED(int gpio)
LED(int gpio, boolean activeHigh)
LED(GpioDeviceFactoryInterface deviceFactory, int gpio)
MCP23008()
MCP23008(int interruptGpio)
MCP23008(int interruptGpioA, int interruptGpioB)
MCP23008(int controller, int address, int interruptGpio)
MCP23008(int controller, int address, int interruptGpioA, int interruptGpioB)
MCP23017()
MCP23017(int interruptGpio)
MCP23017(int interruptGpioA, int interruptGpioB)
MCP23017(int controller, int address, int interruptGpio)
MCP23017(int controller, int address, int interruptGpioA, int interruptGpioB)
MCP23S17(int address)
MCP23S17(int address, int interruptGpio)
MCP23S17(int address, int interruptGpioA, int interruptGpioB)
MCP23S17(int controller, int chipSelect, int address, int interruptGpio)
MCP23S17(int controller, int chipSelect, int address, int interruptGpioA, int interruptGpioB)
McpAdc(McpAdc.Type type, int chipSelect, float vRef)
McpAdc(McpAdc.Type type, int controller, int chipSelect, float vRef)
PCA9685(int pwmFrequency)
PCA9685(int controller, int pwmFrequency)
PCA9685(int controller, int address, int pwmFrequency)
PwmLed(int gpio)
PwmLed(int gpio, float initialValue)
PwmLed(PwmOutputDeviceFactoryInterface deviceFactory, int gpio)
PwmLed(PwmOutputDeviceFactoryInterface deviceFactory, int gpio, float initialValue)
RgbLed(int redPin, int greenPin, int bluePin)
RgbLed(GpioDeviceFactoryInterface deviceFactory, int redPin, int greenPin, int bluePin)
RgbPwmLed(int redPin, int greenPin, int bluePin)
RgbPwmLed(PwmOutputDeviceFactoryInterface deviceFactory, int redPin, int greenPin, int bluePin)
RyanteckDualMotor()
Servo(int gpio, float initialPulseWidthMs)
Servo(int gpio, float initialPulseWidthMs, int pwmFrequency)
Servo(int gpio, float initialPulseWidthMs, int pwmFrequency, Servo.Trim trim)
Servo(int gpio, float initialPulseWidthMs, Servo.Trim trim)
Servo(PwmOutputDeviceFactoryInterface pwmDeviceFactory, int gpio, float initialPulseWidthMs, int pwmFrequency)
Servo(PwmOutputDeviceFactoryInterface pwmDeviceFactory, int gpio, float initialPulseWidthMs, int pwmFrequency, Servo.Trim trim)
TMP36(AnalogInputDeviceFactoryInterface deviceFactory, int gpio, float tempOffset)
TSL2561(int controllerNumber, int addressSize, int clockFreq, TSL2561.TSL2561Package tsl2561Package)
TSL2561(TSL2561.TSL2561Package tsl2561Package)
-
Uses of RuntimeIOException in com.diozero.devices.sandpit
Methods in com.diozero.devices.sandpit that throw RuntimeIOException Modifier and Type Method Description void
TB6612FNGMotor. backward(float speed)
void
TB6612FNGMotor. forward(float speed)
float
HCSR04UsingEvents. getDistanceCm()
Send a pulse to HCSR04 and compute the echo to obtain distancefloat
HCSR04UsingWait. getDistanceCm()
Send a pulse to HCSR04 and compute the echo to obtain distancefloat
TB6612FNGMotor. getValue()
Represents the speed of the motor as a floating point value between -1 (full speed backward) and 1 (full speed forward)boolean
TB6612FNGMotor. isActive()
void
TB6612FNGMotor. stop()
Constructors in com.diozero.devices.sandpit that throw RuntimeIOException Constructor Description DebouncedDigitalInputDevice(int gpio)
DebouncedDigitalInputDevice(int gpio, GpioPullUpDown pud, float debounceTime)
DebouncedDigitalInputDevice(int gpio, GpioPullUpDown pud, float debounceTime, GpioEventTrigger trigger)
HCSR04UsingEvents(int triggerGpioNum, int echoGpioNum)
Initialise GPIO to echo and trigger pinsHCSR04UsingWait(int triggerGpioNum, int echoGpioNum)
Initialise GPIO to echo and trigger pinsMotionSensor(int gpio)
Defaults 'threshold' to 1, eventAge t0 20ms and eventDetectPeriod to 10ms.MotionSensor(int gpio, int threshold, int eventAge, int eventDetectPeriod)
MotionSensor(int gpio, GpioPullUpDown pud, int threshold, int eventAge, int eventDetectPeriod)
TB6612FNGDualMotorDriver(int leftMotorClockwiseControlGpio, int leftMotorCounterClockwiseControlGpio, int leftMotorPwmGpio, int rightMotorClockwiseControlGpio, int rightMotorCounterClockwiseControlGpio, int rightMotorPwmGpio)
TB6612FNGDualMotorDriver(PwmOutputDeviceFactoryInterface pwmDeviceFactory, int leftMotorClockwiseControlGpio, int leftMotorCounterClockwiseControlGpio, int leftMotorPwmGpio, int rightMotorClockwiseControlGpio, int rightMotorCounterClockwiseControlGpio, int rightMotorPwmGpio)
-
Uses of RuntimeIOException in com.diozero.internal.board.odroid
Methods in com.diozero.internal.board.odroid that throw RuntimeIOException Modifier and Type Method Description float
OdroidC2SysFsPwmOutputDevice. getValue()
void
OdroidC2SysFsPwmOutputDevice. setValue(float value)
-
Uses of RuntimeIOException in com.diozero.internal.provider
Methods in com.diozero.internal.provider that throw RuntimeIOException Modifier and Type Method Description void
DeviceFactoryInterface. close()
protected abstract void
AbstractDevice. closeDevice()
I2CDeviceInterface
I2CDeviceFactoryInterface. createI2CDevice(java.lang.String key, int controller, int address, int addressSize, int clockFrequency)
SpiDeviceInterface
SpiDeviceFactoryInterface. createSpiDevice(java.lang.String key, int controller, int chipSelect, int frequency, SpiClockMode spiClockMode, boolean lsbFirst)
float
AnalogInputDeviceInterface. getValue()
float
AnalogOutputDeviceInterface. getValue()
boolean
GpioDigitalDeviceInterface. getValue()
float
PwmOutputDeviceInterface. getValue()
Get the current PWM output value (0..1)boolean
I2CDeviceInterface. probe(I2CDevice.ProbeMode mode)
default AnalogInputDeviceInterface
AnalogInputDeviceFactoryInterface. provisionAnalogInputDevice(int adcNumber)
default AnalogOutputDeviceInterface
AnalogOutputDeviceFactoryInterface. provisionAnalogOutputDevice(int dacNumber)
default GpioDigitalInputDeviceInterface
GpioDeviceFactoryInterface. provisionDigitalInputDevice(int gpio, GpioPullUpDown pud, GpioEventTrigger trigger)
default GpioDigitalInputOutputDeviceInterface
GpioDeviceFactoryInterface. provisionDigitalInputOutputDevice(int gpio, DeviceMode mode)
default GpioDigitalOutputDeviceInterface
GpioDeviceFactoryInterface. provisionDigitalOutputDevice(int gpio, boolean initialValue)
default I2CDeviceInterface
I2CDeviceFactoryInterface. provisionI2CDevice(int controller, int address, int addressSize, int clockFrequency)
default PwmOutputDeviceInterface
PwmOutputDeviceFactoryInterface. provisionPwmOutputDevice(int pwmOrGpioNum, int pwmFrequency, float initialValue)
default SpiDeviceInterface
SpiDeviceFactoryInterface. provisionSpiDevice(int controller, int chipSelect, int frequency, SpiClockMode spiClockMode, boolean lsbFirst)
void
I2CDeviceInterface. read(java.nio.ByteBuffer buffer)
byte
I2CDeviceInterface. readByte()
byte
I2CDeviceInterface. readByteData(int register)
void
I2CDeviceInterface. readI2CBlockData(int register, int subAddressSize, java.nio.ByteBuffer buffer)
void
AnalogOutputDeviceInterface. setValue(float value)
void
GpioDigitalOutputDeviceInterface. setValue(boolean value)
void
PwmOutputDeviceInterface. setValue(float value)
Set the PWM output value (0..1)void
I2CDeviceInterface. write(java.nio.ByteBuffer buffer)
byte[]
SpiDeviceInterface. writeAndRead(byte[] txBuffer)
void
I2CDeviceInterface. writeByte(byte b)
void
I2CDeviceInterface. writeByteData(int register, byte b)
void
I2CDeviceInterface. writeI2CBlockData(int register, int subAddressSize, java.nio.ByteBuffer buffer)
-
Uses of RuntimeIOException in com.diozero.internal.provider.mcp23xxx
Methods in com.diozero.internal.provider.mcp23xxx that throw RuntimeIOException Modifier and Type Method Description void
MCP23xxx. close()
protected void
MCP23xxxDigitalInputDevice. closeDevice()
protected void
MCP23xxxDigitalInputOutputDevice. closeDevice()
protected void
MCP23xxxDigitalOutputDevice. closeDevice()
void
MCP23xxx. closeGpio(int gpio)
boolean
MCP23xxx. getValue(int gpio)
boolean
MCP23xxxDigitalInputDevice. getValue()
boolean
MCP23xxxDigitalInputOutputDevice. getValue()
boolean
MCP23xxxDigitalOutputDevice. getValue()
void
MCP23xxx. setValue(int gpio, boolean value)
void
MCP23xxxDigitalInputOutputDevice. setValue(boolean value)
void
MCP23xxxDigitalOutputDevice. setValue(boolean value)
Constructors in com.diozero.internal.provider.mcp23xxx that throw RuntimeIOException Constructor Description MCP23xxx(int numPorts, java.lang.String deviceName)
MCP23xxx(int numPorts, java.lang.String deviceName, int interruptGpio)
MCP23xxx(int numPorts, java.lang.String deviceName, int interruptGpioA, int interruptGpioB)
-
Uses of RuntimeIOException in com.diozero.internal.provider.sysfs
Methods in com.diozero.internal.provider.sysfs that throw RuntimeIOException Modifier and Type Method Description protected void
SysFsAnalogInputDevice. closeDevice()
protected void
SysFsDigitalInputDevice. closeDevice()
protected void
SysFsDigitalInputOutputDevice. closeDevice()
protected void
SysFsDigitalOutputDevice. closeDevice()
protected void
SysFsI2CDevice. closeDevice()
protected void
SysFsSpiDevice. closeDevice()
AnalogInputDeviceInterface
SysFsDeviceFactory. createAnalogInputDevice(java.lang.String key, PinInfo pinInfo)
AnalogOutputDeviceInterface
SysFsDeviceFactory. createAnalogOutputDevice(java.lang.String key, PinInfo pinInfo)
GpioDigitalInputDeviceInterface
SysFsDeviceFactory. createDigitalInputDevice(java.lang.String key, PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger)
GpioDigitalInputOutputDeviceInterface
SysFsDeviceFactory. createDigitalInputOutputDevice(java.lang.String key, PinInfo pinInfo, DeviceMode mode)
GpioDigitalOutputDeviceInterface
SysFsDeviceFactory. createDigitalOutputDevice(java.lang.String key, PinInfo pinInfo, boolean initialValue)
I2CDeviceInterface
SysFsDeviceFactory. createI2CDevice(java.lang.String key, int controller, int address, int addressSize, int clockFrequency)
PwmOutputDeviceInterface
SysFsDeviceFactory. createPwmOutputDevice(java.lang.String key, PinInfo pinInfo, int pwmFrequency, float initialValue)
SpiDeviceInterface
SysFsDeviceFactory. createSpiDevice(java.lang.String key, int controller, int chipSelect, int frequency, SpiClockMode spiClockMode, boolean lsbFirst)
float
SysFsAnalogInputDevice. getValue()
boolean
SysFsDigitalInputDevice. getValue()
boolean
SysFsDigitalInputOutputDevice. getValue()
boolean
SysFsDigitalOutputDevice. getValue()
float
SysFsPwmOutputDevice. getValue()
void
SysFsI2CDevice. read(java.nio.ByteBuffer dst)
byte
SysFsI2CDevice. readByte()
byte
SysFsI2CDevice. readByteData(int register)
void
SysFsI2CDevice. readI2CBlockData(int register, int subAddressSize, java.nio.ByteBuffer dst)
void
SysFsDigitalInputOutputDevice. setValue(boolean value)
void
SysFsDigitalOutputDevice. setValue(boolean value)
void
SysFsPwmOutputDevice. setValue(float value)
void
SysFsI2CDevice. write(java.nio.ByteBuffer src)
byte[]
SysFsSpiDevice. writeAndRead(byte[] txBuffer)
void
SysFsI2CDevice. writeByte(byte b)
void
SysFsI2CDevice. writeByteData(int register, byte b)
void
SysFsI2CDevice. writeI2CBlockData(int register, int subAddressSize, java.nio.ByteBuffer src)
Constructors in com.diozero.internal.provider.sysfs that throw RuntimeIOException Constructor Description NativeI2CDeviceSMBus(int controller, int deviceAddress, boolean force)