public class Gpio
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Gpio.Pin |
static class |
Gpio.PinConfig |
Modifier and Type | Method and Description |
---|---|
DeviceSetting<Gpio.PinConfig> |
config(Gpio.Pin pin)
Configure particular GPIO port pin.
|
DeviceSetting<java.lang.Byte> |
data()
Read/write GPIO port data at once.
|
DeviceSetting<java.lang.Boolean> |
data(Gpio.Pin pin)
Reads and writes to particular GPIO port pin.
|
NotifiableDeviceSetting<java.lang.Byte> |
dataNotify()
Read and get notified about port change.
|
DeviceSetting<java.lang.Boolean> |
interrupt()
Enable/disable interrupt for whole GPIO.
|
public DeviceSetting<Gpio.PinConfig> config(Gpio.Pin pin)
pin
- Port pin to configure.public DeviceSetting<java.lang.Boolean> data(Gpio.Pin pin)
pin
- Pin to set.public DeviceSetting<java.lang.Boolean> interrupt()
public DeviceSetting<java.lang.Byte> data()
public NotifiableDeviceSetting<java.lang.Byte> dataNotify()
Note: You need to configure interrupts first to receive notification.