- getAccel() - Method in class com.diozero.api.imu.ImuData
-
- getAccelerometerData() - Method in interface com.diozero.api.imu.ImuInterface
-
- getAddress() - Method in class com.diozero.api.I2CDevice
-
- getAddressSize() - Method in class com.diozero.api.I2CDevice
-
- getAvailableSensors() - Static method in class com.diozero.W1ThermSensor
-
- getAvailableSensors(String) - Static method in class com.diozero.W1ThermSensor
-
- getBitMask(int...) - Static method in class com.diozero.util.BitManipulation
-
- getBitMask(int) - Static method in class com.diozero.util.BitManipulation
-
- getBoardInfo() - Static method in class com.diozero.util.SystemInfo
-
- getByMode(int) - Static method in enum com.diozero.api.SpiClockMode
-
- getChipSelect() - Method in class com.diozero.api.SpiDevice
-
- getChipSelect() - Method in interface com.diozero.internal.spi.SpiDeviceInterface
-
- getClockFrequency() - Method in class com.diozero.api.I2CDevice
-
- getColumnCount() - Method in class com.diozero.I2CLcd
-
- getCompass() - Method in class com.diozero.api.imu.ImuData
-
- getCompassData() - Method in interface com.diozero.api.imu.ImuInterface
-
- getControlFlags() - Method in enum com.diozero.sandpit.PCF8591.InputMode
-
- getController() - Method in class com.diozero.api.I2CDevice
-
- getController() - Method in class com.diozero.api.SpiDevice
-
- getController() - Method in interface com.diozero.internal.spi.SpiDeviceInterface
-
- getCount() - Method in class com.diozero.api.imu.TapEvent
-
- getDaemonInstance() - Static method in class com.diozero.util.DioZeroScheduler
-
- getDelay() - Method in enum com.diozero.BMP180.BMPMode
-
Return the conversion delay (in ms) associated with this sampling
mode
- getDevice(String) - Method in class com.diozero.internal.DeviceStates
-
- getDevice(String, Class<T>) - Method in class com.diozero.internal.spi.AbstractDeviceFactory
-
- getDeviceFactory() - Method in class com.diozero.internal.spi.AbstractDevice
-
- getDirection() - Method in class com.diozero.api.imu.TapEvent
-
- getDistanceCm() - Method in interface com.diozero.api.DistanceSensorInterface
-
- getDistanceCm() - Method in class com.diozero.GP2Y0A21YK
-
Read distance in centimetres, range 10 to 80cm.
- getDistanceCm() - Method in class com.diozero.HCSR04
-
Send a pulse to HCSR04 and compute the echo to obtain distance
- getDistanceCm() - Method in class com.diozero.sandpit.HCSR04UsingEvents
-
Send a pulse to HCSR04 and compute the echo to obtain distance
- getDistanceCm() - Method in class com.diozero.sandpit.HCSR04UsingWait
-
Send a pulse to HCSR04 and compute the echo to obtain distance
- getEpochTime() - Method in class com.diozero.api.DeviceEvent
-
- getEpochTime() - Method in class com.diozero.api.motor.MotorEvent
-
- getEpochTime() - Method in class com.diozero.util.EpollEvent
-
- getEventAge() - Method in class com.diozero.api.SmoothedInputDevice
-
The time in milliseconds to keep items in the queue.
- getEventDetectPeriod() - Method in class com.diozero.api.SmoothedInputDevice
-
How frequently (in milliseconds) to check the state of the queue.
- getEventMask() - Method in class com.diozero.util.EpollEvent
-
- getFd() - Method in class com.diozero.util.EpollEvent
-
- getGyro() - Method in class com.diozero.api.imu.ImuData
-
- getGyroData() - Method in interface com.diozero.api.imu.ImuInterface
-
- getHumidity() - Method in class com.diozero.BME280
-
- getHumidity() - Method in class com.diozero.HTS221
-
- getId() - Method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Manufacturer
-
- getId() - Method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Memory
-
- getId() - Method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Model
-
- getId() - Method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Processor
-
- getId() - Method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Revision
-
- getId() - Method in enum com.diozero.W1ThermSensor.Type
-
- getImuData() - Method in interface com.diozero.api.imu.ImuInterface
-
- getImuName() - Method in interface com.diozero.api.imu.ImuInterface
-
- getKey() - Method in class com.diozero.internal.spi.AbstractDevice
-
- getKey() - Method in interface com.diozero.internal.spi.DeviceInterface
-
- getLdrResistance() - Method in class com.diozero.LDR
-
Read the resistance across the LDR.
- getLeftMotor() - Method in class com.diozero.api.motor.DualMotor
-
- getLibraryPath() - Method in class com.diozero.internal.board.odroid.OdroidBoardInfoProvider.OdroidBoardInfo
-
- getLibraryPath() - Method in class com.diozero.util.BoardInfo
-
- getLibraryPath() - Static method in class com.diozero.util.SystemInfo
-
- getLuminosity() - Method in interface com.diozero.api.LuminositySensorInterface
-
- getLuminosity() - Method in class com.diozero.TSL2561
-
Converts the raw sensor values to the standard SI lux equivalent.
- getMake() - Method in class com.diozero.util.BoardInfo
-
- getMask() - Method in enum com.diozero.BME280.FilterMode
-
- getMask() - Method in enum com.diozero.BME280.HumidityOversampling
-
- getMask() - Method in enum com.diozero.BME280.OperatingMode
-
- getMask() - Method in enum com.diozero.BME280.PressureOversampling
-
- getMask() - Method in enum com.diozero.BME280.StandbyMode
-
- getMask() - Method in enum com.diozero.BME280.TemperatureOversampling
-
- getMemory() - Method in class com.diozero.util.BoardInfo
-
- getMode() - Method in enum com.diozero.api.SpiClockMode
-
- getMode() - Method in interface com.diozero.internal.spi.GpioAnalogInputDeviceInterface
-
- getMode() - Method in interface com.diozero.internal.spi.GpioAnalogOutputDeviceInterface
-
- getMode() - Method in interface com.diozero.internal.spi.GpioDeviceInterface
-
- getMode() - Method in interface com.diozero.internal.spi.GpioDigitalInputDeviceInterface
-
- getMode() - Method in interface com.diozero.internal.spi.GpioDigitalOutputDeviceInterface
-
- getModel() - Method in class com.diozero.util.BoardInfo
-
- getName() - Method in interface com.diozero.internal.spi.DeviceFactoryInterface
-
- getName() - Method in class com.diozero.MCP23017
-
- getName() - Method in class com.diozero.McpAdc
-
- getName() - Method in class com.diozero.PCA9685
-
- getName() - Method in class com.diozero.sandpit.PCF8591
-
- getName() - Method in enum com.diozero.sandpit.PCF8591.InputMode
-
- getNanoTime() - Method in class com.diozero.api.DeviceEvent
-
- getNanoTime() - Method in class com.diozero.api.motor.MotorEvent
-
- getNativeDeviceFactory() - Static method in class com.diozero.internal.DeviceFactoryHelper
-
- getNonDaemonInstance() - Static method in class com.diozero.util.DioZeroScheduler
-
- getNumPins() - Method in enum com.diozero.McpAdc.Type
-
- getNumPins() - Method in class com.diozero.sandpit.PCF8591
-
- getNumPins() - Method in enum com.diozero.sandpit.PCF8591.InputMode
-
- getOperatingSystemId() - Static method in class com.diozero.util.SystemInfo
-
- getOperatingSystemVersion() - Static method in class com.diozero.util.SystemInfo
-
- getOperatingSystemVersionId() - Static method in class com.diozero.util.SystemInfo
-
- getOrientation() - Method in class com.diozero.api.imu.OrientationEvent
-
- getOsReleaseProperty(String) - Static method in class com.diozero.util.SystemInfo
-
- getPin() - Method in class com.diozero.api.DeviceEvent
-
- getPin() - Method in interface com.diozero.internal.spi.GpioDeviceInterface
-
- getPin() - Method in interface com.diozero.internal.spi.PwmOutputDeviceInterface
-
Get the device pin number
- getPinNumber() - Method in class com.diozero.api.GpioDevice
-
Get the GPIO pin number for this device.
- getPollInterval() - Method in interface com.diozero.api.imu.ImuInterface
-
Get the recommended poll interval in milliseconds
- getPressure() - Method in interface com.diozero.api.PressureSensorInterface
-
- getPressure() - Method in class com.diozero.BME280
-
- getPressure() - Method in class com.diozero.BMP180
-
Read the barometric pressure (in hPa) from the device.
- getPressure() - Method in class com.diozero.LPS25H
-
- getPressureCommand() - Method in enum com.diozero.BMP180.BMPMode
-
Return the pressure command to the control register for this sampling
mode
- getPullUpDown() - Method in class com.diozero.api.DigitalInputDevice
-
Get pull up / down configuration.
- getPulseWidthMs() - Method in class com.diozero.sandpit.Servo
-
Get the current servo pulse width in milliseconds
- getPwmFrequency(int) - Method in interface com.diozero.internal.spi.PwmOutputDeviceFactoryInterface
-
- getPwmFrequency(int) - Method in class com.diozero.PCA9685
-
- getPwmFrequency() - Method in class com.diozero.sandpit.Servo
-
- getQuaternion() - Method in class com.diozero.api.imu.ImuData
-
- getRam() - Method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Memory
-
- getRange() - Method in enum com.diozero.McpAdc.Type
-
- getResolution() - Method in enum com.diozero.McpAdc.Type
-
- getRightMotor() - Method in class com.diozero.api.motor.DualMotor
-
- getRowCount() - Method in class com.diozero.I2CLcd
-
- getSamplingMode() - Method in enum com.diozero.BMP180.BMPMode
-
Return this sampling mode
- getScaledValue() - Method in class com.diozero.api.AnalogInputDevice
-
Get the scaled value in the range 0..range (if unsigned) or -range..range
(if signed)
- getScaledValue() - Method in class com.diozero.api.AnalogInputEvent
-
Value from -range..range
- getScaledValue() - Method in class com.diozero.TMP36
-
- getSerialNumber() - Method in class com.diozero.W1ThermSensor
-
- getShort(ByteBuffer) - Static method in class com.diozero.util.IOUtil
-
- getShort(ByteBuffer, ByteOrder) - Static method in class com.diozero.util.IOUtil
-
- getTemperature() - Method in class com.diozero.api.imu.ImuData
-
- getTemperature() - Method in interface com.diozero.api.TemperatureSensorInterface
-
Get temperature in degrees celsius
- getTemperature() - Method in class com.diozero.BME280
-
- getTemperature() - Method in class com.diozero.BMP180
-
Method for reading the temperature.
- getTemperature() - Method in class com.diozero.HTS221
-
Get temperature (degrees C).
- getTemperature() - Method in class com.diozero.LPS25H
-
- getTemperature() - Method in class com.diozero.TMP36
-
Get the current temperature in °C.
- getTemperature() - Method in class com.diozero.W1ThermSensor
-
Get temperature in degrees celsius
- getThreshold() - Method in class com.diozero.api.SmoothedInputDevice
-
If the number of on events younger than eventAge exceeds this amount,
then 'isActive' will return 'True'.
- getTimestamp() - Method in class com.diozero.api.imu.ImuData
-
- getTrigger() - Method in class com.diozero.api.DigitalInputDevice
-
Get event trigger configuration.
- getType() - Method in class com.diozero.W1ThermSensor
-
- getUInt(ByteBuffer) - Static method in class com.diozero.util.IOUtil
-
- getUInt(ByteBuffer, ByteOrder) - Static method in class com.diozero.util.IOUtil
-
- getUInt(ByteBuffer, int) - Static method in class com.diozero.util.IOUtil
-
- getUInt(ByteBuffer, int, ByteOrder) - Static method in class com.diozero.util.IOUtil
-
- getUnscaledValue() - Method in class com.diozero.api.AnalogInputDevice
-
Get the unscaled normalised value in the range 0..1 (if unsigned) or
-1..1 (if signed)
- getUnscaledValue() - Method in class com.diozero.api.AnalogInputEvent
-
Value from -1..1
- getUShort(ByteBuffer) - Static method in class com.diozero.util.IOUtil
-
- getUShort(ByteBuffer, ByteOrder) - Static method in class com.diozero.util.IOUtil
-
- getVal() - Method in enum com.diozero.api.imu.TapEvent.TapAxisType
-
- getValue() - Method in class com.diozero.api.DigitalInputDevice
-
Read the current underlying state of the input pin.
- getValue() - Method in class com.diozero.api.DigitalInputEvent
-
Returns the underlying GPIO state.
- getValue() - Method in class com.diozero.api.motor.DigitalMotor
-
Represents the speed of the motor as a floating point value between -1
(full speed backward) and 1 (full speed forward)
- getValue() - Method in class com.diozero.api.motor.Motor
-
Represents the speed of the motor as a floating point value between -1
(full speed backward) and 1 (full speed forward)
- getValue() - Method in class com.diozero.api.motor.MotorEvent
-
- getValue() - Method in interface com.diozero.api.motor.MotorInterface
-
- getValue() - Method in class com.diozero.api.PwmOutputDevice
-
Get the current PWM output value (0..1).
- getValue() - Method in interface com.diozero.internal.spi.GpioAnalogInputDeviceInterface
-
- getValue() - Method in interface com.diozero.internal.spi.GpioDigitalInputDeviceInterface
-
- getValue() - Method in interface com.diozero.internal.spi.GpioDigitalOutputDeviceInterface
-
- getValue() - Method in interface com.diozero.internal.spi.PwmOutputDeviceInterface
-
Get the current PWM output value (0..1)
- getValue(int) - Method in class com.diozero.MCP23017
-
- getValue(int) - Method in class com.diozero.McpAdc
-
Read the analog value in the range 0..1 or -1..1 (if the ADC type is signed)
- getValue(int) - Method in class com.diozero.PCA9685
-
- getValue(int) - Method in class com.diozero.sandpit.PCF8591
-
Read the analog value in the range 0..1
- getValue() - Method in class com.diozero.sandpit.TB6612FNGMotor
-
Represents the speed of the motor as a floating point value between -1
(full speed backward) and 1 (full speed forward)
- getValue() - Method in class com.diozero.util.MutableByte
-
- getValues() - Method in class com.diozero.api.motor.DualMotor
-
- getValues() - Method in class com.diozero.BME280
-
- getValues() - Method in class com.diozero.RgbLed
-
Get the state of all LEDs.
- getValues() - Method in class com.diozero.RgbPwmLed
-
Get the value of all LEDs.
- getVoltage() - Method in class com.diozero.Potentiometer
-
- go() - Method in class com.diozero.sampleapps.CamJamLineFollower
-
- go() - Method in class com.diozero.sampleapps.CamJamRobot
-
- GP2Y0A21YK - Class in com.diozero
-
Sharp GP2Y0A21YK distance sensor.
- GP2Y0A21YK(int, float) - Constructor for class com.diozero.GP2Y0A21YK
-
- GP2Y0A21YK(AnalogInputDeviceFactoryInterface, int, float) - Constructor for class com.diozero.GP2Y0A21YK
-
- GP2Y0A21YKApp - Class in com.diozero.sampleapps
-
Sample application for reading LDR analog values.
- GP2Y0A21YKApp() - Constructor for class com.diozero.sampleapps.GP2Y0A21YKApp
-
- GpioAnalogInputDeviceInterface - Interface in com.diozero.internal.spi
-
- GpioAnalogOutputDeviceInterface - Interface in com.diozero.internal.spi
-
- GpioDevice - Class in com.diozero.api
-
Abstract base class for all GPIO related devices.
- GpioDevice(int) - Constructor for class com.diozero.api.GpioDevice
-
- GpioDeviceFactoryInterface - Interface in com.diozero.internal.spi
-
- GpioDeviceInterface - Interface in com.diozero.internal.spi
-
- GpioDeviceInterface.Mode - Enum in com.diozero.internal.spi
-
- GpioDigitalInputDeviceInterface - Interface in com.diozero.internal.spi
-
- GpioDigitalOutputDeviceInterface - Interface in com.diozero.internal.spi
-
- GpioEventTrigger - Enum in com.diozero.api
-
- GpioInputDevice<T extends DeviceEvent> - Class in com.diozero.api
-
Common base class for digital and analog input devices.
- GpioInputDevice(int) - Constructor for class com.diozero.api.GpioInputDevice
-
- GpioPerfTest - Class in com.diozero.sampleapps
-
GPIO output performance test application.
- GpioPerfTest() - Constructor for class com.diozero.sampleapps.GpioPerfTest
-
- GpioPullUpDown - Enum in com.diozero.api
-
- hasAccelerometer() - Method in interface com.diozero.api.imu.ImuInterface
-
- hasCompass() - Method in interface com.diozero.api.imu.ImuInterface
-
- hasGyro() - Method in interface com.diozero.api.imu.ImuInterface
-
- HCSR04 - Class in com.diozero
-
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.
- HCSR04(int, int) - Constructor for class com.diozero.HCSR04
-
Initialise GPIO to echo and trigger pins
- HCSR04Test - Class in com.diozero.sampleapps
-
HC-SR04 distance sensor sample application.
- HCSR04Test() - Constructor for class com.diozero.sampleapps.HCSR04Test
-
- HCSR04UsingEvents - Class in com.diozero.sandpit
-
Note this version doesn't work as well as the event-based HCSR04UsingEvents version as the ns event timings
aren't from the raw device unfortunately, only as they get processed in Java
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.
- HCSR04UsingEvents(int, int) - Constructor for class com.diozero.sandpit.HCSR04UsingEvents
-
Initialise GPIO to echo and trigger pins
- HCSR04UsingWait - Class in com.diozero.sandpit
-
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.
- HCSR04UsingWait(int, int) - Constructor for class com.diozero.sandpit.HCSR04UsingWait
-
Initialise GPIO to echo and trigger pins
- HTS221 - Class in com.diozero
-
STMicroelectronics HTS221 "ultra compact sensor for relative humidity and temperature".
- HTS221() - Constructor for class com.diozero.HTS221
-
- HTS221(int, int) - Constructor for class com.diozero.HTS221
-
- HTS221App - Class in com.diozero.sampleapps
-
HTS221 sample application.
- HTS221App() - Constructor for class com.diozero.sampleapps.HTS221App
-
- sameMakeAndModel(BoardInfo) - Method in class com.diozero.util.BoardInfo
-
- scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in class com.diozero.util.DioZeroScheduler
-
- selectTag(byte[]) - Method in class com.diozero.sandpit.MFRC522
-
- Servo - Class in com.diozero.sandpit
-
- Servo(int, int, float) - Constructor for class com.diozero.sandpit.Servo
-
- Servo(PwmOutputDeviceFactoryInterface, int, int, float) - Constructor for class com.diozero.sandpit.Servo
-
- ServoTest - Class in com.diozero.sampleapps
-
Servo test application.
- ServoTest() - Constructor for class com.diozero.sampleapps.ServoTest
-
- ServoUtil - Class in com.diozero.util
-
- ServoUtil() - Constructor for class com.diozero.util.ServoUtil
-
- set() - Method in class com.diozero.util.Event
-
- setAntennaOn(boolean) - Method in class com.diozero.sandpit.MFRC522
-
Open antennas, each time you start or shut down the natural barrier between the transmitter should be at least 1ms interval
- setAutoGain(boolean) - Method in class com.diozero.TSL2561
-
Enables or disables the auto-gain settings when reading data from the sensor
- setBacklightOn(boolean) - Method in class com.diozero.I2CLcd
-
- setBit(byte) - Method in class com.diozero.util.MutableByte
-
- setBitValue(byte, boolean, int) - Static method in class com.diozero.util.BitManipulation
-
- setBitValue(byte, boolean) - Method in class com.diozero.util.MutableByte
-
- setCharacter(int, int, char) - Method in class com.diozero.I2CLcd
-
- setCursorPosition(int, int) - Method in class com.diozero.I2CLcd
-
- setDebounceTime(float) - Method in class com.diozero.sandpit.DebouncedDigitalInputDevice
-
- setDebounceTimeMillis(int) - Method in interface com.diozero.internal.spi.GpioDigitalInputDeviceInterface
-
- setEventAge(int) - Method in class com.diozero.api.SmoothedInputDevice
-
Set the event age (milliseconds).
- setFd(int) - Method in class com.diozero.util.PollNative
-
- setGain(int) - Method in class com.diozero.TSL2561
-
Adjusts the gain on the TSL2561 (adjusts the sensitivity to light)
- setGyro(Vector3D) - Method in class com.diozero.api.imu.ImuData
-
- setListener(InputEventListener<T>) - Method in class com.diozero.internal.spi.AbstractInputDevice
-
- setListener(InputEventListener<DigitalInputEvent>) - Method in interface com.diozero.internal.spi.GpioDigitalInputDeviceInterface
-
- setNativeDeviceFactory(NativeDeviceFactoryInterface) - Static method in class com.diozero.internal.DeviceFactoryHelper
-
- setOn(boolean) - Method in class com.diozero.api.DigitalOutputDevice
-
Turn the device on or off.
- setOperatingModes(BME280.TemperatureOversampling, BME280.PressureOversampling, BME280.HumidityOversampling, BME280.OperatingMode) - Method in class com.diozero.BME280
-
- setOutputEnabledFlag(boolean) - Method in class com.diozero.sandpit.PCF8591
-
- setPulseWidthMs(float) - Method in class com.diozero.sandpit.Servo
-
Set the servo pulse width in milliseconds
- setPwmFrequency(int, int) - Method in interface com.diozero.internal.spi.PwmOutputDeviceFactoryInterface
-
- setPwmFrequency(int, int) - Method in class com.diozero.PCA9685
-
- setServoPulseWidthMs(int, double) - Method in class com.diozero.PCA9685
-
Set the pulse duration (micro-seconds)
E.g.
- setStandbyAndFilterModes(BME280.StandbyMode, BME280.FilterMode) - Method in class com.diozero.BME280
-
- setText(int, String) - Method in class com.diozero.I2CLcd
-
Send string to display
- setThreshold(int) - Method in class com.diozero.api.SmoothedInputDevice
-
Set the threshold value in terms of number of on events within the
specified time period that will trigger an on event to any listeners.
- setValue(float) - Method in class com.diozero.api.motor.MotorBase
-
Set the speed of the motor as a floating point value between -1 (full
speed backward) and 1 (full speed forward)
- setValue(float) - Method in interface com.diozero.api.motor.MotorInterface
-
- setValue(float) - Method in class com.diozero.api.PwmOutputDevice
-
Set the PWM output value (0..1).
- setValue(float) - Method in interface com.diozero.internal.spi.GpioAnalogOutputDeviceInterface
-
- setValue(boolean) - Method in interface com.diozero.internal.spi.GpioDigitalOutputDeviceInterface
-
- setValue(float) - Method in interface com.diozero.internal.spi.PwmOutputDeviceInterface
-
Set the PWM output value (0..1)
- setValue(int, boolean) - Method in class com.diozero.MCP23017
-
- setValue(int, float) - Method in class com.diozero.PCA9685
-
Set PWM output on a specific channel, value must be 0..1
- setValue(int, float) - Method in class com.diozero.sandpit.PCF8591
-
Set the analog output value.
- setValueInternal(float) - Method in class com.diozero.api.PwmOutputDevice
-
- setValues(float, float) - Method in class com.diozero.api.motor.DualMotor
-
Set the speed and direction for both motors (clockwise / counter-clockwise)
- setValues(boolean, boolean, boolean) - Method in class com.diozero.RgbLed
-
Set the state of all LEDs.
- setValues(float, float, float) - Method in class com.diozero.RgbPwmLed
-
Set the value of all LEDs.
- setValueUnsafe(boolean) - Method in class com.diozero.api.DigitalOutputDevice
-
Unsafe operation that has no synchronisation checks and doesn't compensate
for active low logic.
- shiftDisplayLeft() - Method in class com.diozero.I2CLcd
-
- shiftDisplayRight() - Method in class com.diozero.I2CLcd
-
- shutdown() - Method in class com.diozero.internal.spi.AbstractDeviceFactory
-
- shutdown() - Method in interface com.diozero.internal.spi.DeviceFactoryInterface
-
- shutdown(int) - Static method in class com.diozero.util.EpollNative
-
- shutdownAll() - Static method in class com.diozero.util.DioZeroScheduler
-
- size() - Method in class com.diozero.internal.DeviceStates
-
- sleepMicros(int) - Static method in class com.diozero.util.SleepUtil
-
Sleep for the specific number of microseconds
- sleepMillis(long) - Static method in class com.diozero.util.SleepUtil
-
Sleep for the specific number of milliseconds
- sleepNanos(int) - Static method in class com.diozero.util.SleepUtil
-
Sleep for the specified number of nanoseconds.
- sleepNanos(int, long) - Static method in class com.diozero.util.SleepUtil
-
- sleepSeconds(int) - Static method in class com.diozero.util.SleepUtil
-
Sleep for the specific number of seconds
- sleepSeconds(double) - Static method in class com.diozero.util.SleepUtil
-
Sleep for the specific number of seconds
- SleepUtil - Class in com.diozero.util
-
- SleepUtil() - Constructor for class com.diozero.util.SleepUtil
-
- SmoothedInputDevice - Class in com.diozero.api
-
Represents a generic input device which takes its value from the number of
active events over a specific time period.
- SmoothedInputDevice(int, GpioPullUpDown, int, int, int) - Constructor for class com.diozero.api.SmoothedInputDevice
-
- SmoothedInputDevice(GpioDeviceFactoryInterface, int, GpioPullUpDown, int, int, int) - Constructor for class com.diozero.api.SmoothedInputDevice
-
- SoftwarePwm - Class in com.diozero.util
-
- SoftwarePwm(int, int, int) - Constructor for class com.diozero.util.SoftwarePwm
-
- SoftwarePwm(GpioDeviceFactoryInterface, int) - Constructor for class com.diozero.util.SoftwarePwm
-
- SoftwarePwmTest - Class in com.diozero.sampleapps
-
- SoftwarePwmTest() - Constructor for class com.diozero.sampleapps.SoftwarePwmTest
-
- SpiClockMode - Enum in com.diozero.api
-
- SPIConstants - Interface in com.diozero.api
-
- SpiDevice - Class in com.diozero.api
-
https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md
For modern Raspberry Pis:
2 SPI controllers, 0 (SPI-0) and 1 (SPI-1)
Controller 0 has 2 channels (CE-0 on physical pin 24, CE-1 on physical pin 26)
Controller 1 has 3 channels (CE-0 on physical pin 12, CE-1 on physical pin 11, CE-2 on physical pin 36)
SPI-1 is more limited that SPI-0 on the Raspberry Pi (https://www.raspberrypi.org/forums/viewtopic.php?t=81903&p=579154)
- The SPI-1 clock is derived from the system clock therefore you have to be careful when over/underclocking to set the right divisor
- Limited IRQ support, no thresholding on the FIFO except "TX empty" or "done".
- SpiDevice(int) - Constructor for class com.diozero.api.SpiDevice
-
- SpiDevice(int, int) - Constructor for class com.diozero.api.SpiDevice
-
- SpiDevice(int, int, int, SpiClockMode) - Constructor for class com.diozero.api.SpiDevice
-
- SpiDeviceFactoryInterface - Interface in com.diozero.internal.spi
-
- SpiDeviceInterface - Interface in com.diozero.internal.spi
-
- start() - Method in class com.diozero.util.SoftwarePwm
-
- startRead() - Method in class com.diozero.api.imu.ImuBase
-
- startRead() - Method in interface com.diozero.api.imu.ImuInterface
-
- statusAll() - Static method in class com.diozero.util.DioZeroScheduler
-
- stop() - Method in class com.diozero.api.motor.DigitalMotor
-
- stop() - Method in class com.diozero.api.motor.DualMotor
-
- stop() - Method in class com.diozero.api.motor.Motor
-
- stop() - Method in interface com.diozero.api.motor.MotorInterface
-
- stop() - Method in class com.diozero.sandpit.TB6612FNGMotor
-
- stop() - Method in class com.diozero.util.PollNative
-
- stop() - Method in class com.diozero.util.SoftwarePwm
-
- stopRead() - Method in class com.diozero.api.imu.ImuBase
-
- stopRead() - Method in interface com.diozero.api.imu.ImuInterface
-
- stopWait(int) - Static method in class com.diozero.util.EpollNative
-
- StringUtil - Class in com.diozero.util
-
- StringUtil() - Constructor for class com.diozero.util.StringUtil
-
- SUB_ADDRESS_SIZE_1_BYTE - Static variable in interface com.diozero.api.I2CConstants
-
- SUB_ADDRESS_SIZE_2_BYTES - Static variable in interface com.diozero.api.I2CConstants
-
- SystemInfo - Class in com.diozero.util
-
- SystemInfo() - Constructor for class com.diozero.util.SystemInfo
-
- valueChanged(DigitalInputEvent) - Method in class com.diozero.api.DigitalInputDevice
-
- valueChanged(T) - Method in class com.diozero.api.GpioInputDevice
-
- valueChanged(T) - Method in interface com.diozero.api.InputEventListener
-
- valueChanged(float) - Method in class com.diozero.api.motor.MotorBase
-
- valueChanged(MotorEvent) - Method in interface com.diozero.api.motor.MotorListener
-
- valueChanged(DigitalInputEvent) - Method in class com.diozero.api.SmoothedInputDevice
-
- valueChanged(DigitalInputEvent) - Method in class com.diozero.api.WaitableDigitalInputDevice
-
- valueChanged(T) - Method in class com.diozero.internal.spi.AbstractInputDevice
-
- valueChanged(DigitalInputEvent) - Method in class com.diozero.MCP23017
-
- valueChanged(DigitalInputEvent) - Method in class com.diozero.sandpit.HCSR04UsingEvents
-
- valueOf(String) - Static method in enum com.diozero.api.GpioEventTrigger
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.api.GpioPullUpDown
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.api.imu.OrientationEvent.OrientationType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.api.imu.TapEvent.TapAxisType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.api.imu.TapEvent.TapType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.api.PwmType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.api.SpiClockMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.BME280.FilterMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.BME280.HumidityOversampling
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.BME280.OperatingMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.BME280.PressureOversampling
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.BME280.StandbyMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.BME280.TemperatureOversampling
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.BMP180.BMPMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.internal.board.odroid.OdroidBoardInfoProvider.Model
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Manufacturer
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Memory
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Model
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Processor
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Revision
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.internal.spi.GpioDeviceInterface.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.McpAdc.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.sandpit.PCF8591.InputMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.diozero.W1ThermSensor.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(int) - Static method in enum com.diozero.W1ThermSensor.Type
-
- valueOf(Path) - Static method in enum com.diozero.W1ThermSensor.Type
-
- values() - Static method in enum com.diozero.api.GpioEventTrigger
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.api.GpioPullUpDown
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.api.imu.OrientationEvent.OrientationType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.api.imu.TapEvent.TapAxisType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.api.imu.TapEvent.TapType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.api.PwmType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.api.SpiClockMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.BME280.FilterMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.BME280.HumidityOversampling
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.BME280.OperatingMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.BME280.PressureOversampling
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.BME280.StandbyMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.BME280.TemperatureOversampling
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.BMP180.BMPMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.internal.board.odroid.OdroidBoardInfoProvider.Model
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Manufacturer
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Memory
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Model
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Processor
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.internal.board.raspberrypi.RaspberryPiBoardInfoProvider.Revision
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.internal.spi.GpioDeviceInterface.Mode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.McpAdc.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.sandpit.PCF8591.InputMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.diozero.W1ThermSensor.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- W1ThermSensor - Class in com.diozero
-
- W1ThermSensor.Type - Enum in com.diozero
-
- W1ThermSensorApp - Class in com.diozero.sampleapps
-
To run:
- W1ThermSensorApp() - Constructor for class com.diozero.sampleapps.W1ThermSensorApp
-
- WaitableDigitalInputDevice - Class in com.diozero.api
-
Represents a digital input device with distinct waitable states (active / inactive).
- WaitableDigitalInputDevice(int) - Constructor for class com.diozero.api.WaitableDigitalInputDevice
-
- WaitableDigitalInputDevice(int, GpioPullUpDown, GpioEventTrigger) - Constructor for class com.diozero.api.WaitableDigitalInputDevice
-
- WaitableDigitalInputDevice(GpioDeviceFactoryInterface, int, GpioPullUpDown, GpioEventTrigger) - Constructor for class com.diozero.api.WaitableDigitalInputDevice
-
- waitForActive() - Method in class com.diozero.api.WaitableDigitalInputDevice
-
Wait indefinitely for the device state to go active.
- waitForActive(int) - Method in class com.diozero.api.WaitableDigitalInputDevice
-
Wait the specified time period for the device state to go active.
- waitForEvents(int) - Static method in class com.diozero.util.EpollNative
-
- waitForInactive() - Method in class com.diozero.api.WaitableDigitalInputDevice
-
Wait indefinitely for the device state to go inactive.
- waitForInactive(int) - Method in class com.diozero.api.WaitableDigitalInputDevice
-
Wait the specified time period for the device state to go inactive.
- waitForValue(boolean, int) - Method in class com.diozero.api.WaitableDigitalInputDevice
-
Wait the specified time period for the device state to switch to value.
- whenActivated(Action) - Method in class com.diozero.api.DigitalInputDevice
-
Action to perform when the device state is active.
- whenBackward(Action) - Method in class com.diozero.api.motor.MotorBase
-
- whenBackward(Action) - Method in interface com.diozero.api.motor.MotorInterface
-
- whenDeactivated(Action) - Method in class com.diozero.api.DigitalInputDevice
-
Action to perform when the device state is inactive.
- whenForward(Action) - Method in class com.diozero.api.motor.MotorBase
-
- whenForward(Action) - Method in interface com.diozero.api.motor.MotorInterface
-
- whenPressed(Action) - Method in class com.diozero.Button
-
Action to perform when the button is pressed.
- whenReleased(Action) - Method in class com.diozero.Button
-
Action to perform when the button is released.
- whenStop(Action) - Method in class com.diozero.api.motor.MotorBase
-
- whenStop(Action) - Method in interface com.diozero.api.motor.MotorInterface
-
- write(int, int, byte[]) - Method in class com.diozero.api.I2CDevice
-
Writes a single byte to a register
- write(int, int, byte) - Method in class com.diozero.api.I2CDevice
-
Writes a single byte to a register
- write(byte[]) - Method in class com.diozero.api.I2CDevice
-
- write(byte[], ByteOrder) - Method in class com.diozero.api.I2CDevice
-
- write(int, int, ByteBuffer) - Method in interface com.diozero.internal.spi.I2CDeviceInterface
-
- write(ByteBuffer) - Method in interface com.diozero.internal.spi.I2CDeviceInterface
-
- writeAndRead(ByteBuffer) - Method in class com.diozero.api.SpiDevice
-
- writeAndRead(ByteBuffer) - Method in interface com.diozero.internal.spi.SpiDeviceInterface
-
- writeBit(int, int, int) - Method in class com.diozero.api.I2CDevice
-
write a single bit in an 8-bit device register.
- writeBit(int, int, boolean) - Method in class com.diozero.api.I2CDevice
-
write a single bit in an 8-bit device register.
- writeBits(int, int, int, int) - Method in class com.diozero.api.I2CDevice
-
Write multiple bits in an 8-bit device register.
- writeByte(int, int) - Method in class com.diozero.api.I2CDevice
-
Write single byte to an 8-bit device register.
- writeByte(int, byte) - Method in class com.diozero.api.I2CDevice
-
Write single byte to an 8-bit device register.
- writeByte(byte) - Method in class com.diozero.api.I2CDevice
-
- writeByte(byte, ByteOrder) - Method in class com.diozero.api.I2CDevice
-
- writeBytes(int, int, byte[]) - Method in class com.diozero.api.I2CDevice
-
Write multiple bytes to an 8-bit device register.
- writeBytes(int, int, byte[], int) - Method in class com.diozero.api.I2CDevice
-
- writeShort(int, short) - Method in class com.diozero.api.I2CDevice
-
- writeWord(int, int) - Method in class com.diozero.api.I2CDevice
-
Write single word to a 16-bit device register.