public interface Gpio extends MetaWearBoard.Module
Modifier and Type | Interface and Description |
---|---|
static interface |
Gpio.Analog
Measures analog data from a gpio pin
|
static interface |
Gpio.Pin
Represents one GPIO pin
|
static class |
Gpio.PinChangeType
Pin change types
|
static class |
Gpio.PullMode
Input pin configuration types
|
Modifier and Type | Field and Description |
---|---|
static byte |
UNUSED_READ_DELAY
Value indicating that the delay is unused for
Gpio.Analog.read(byte, byte, short, byte) |
static byte |
UNUSED_READ_PIN
Value indicating that the pin is unused for
Gpio.Analog.read(byte, byte, short, byte) |
Modifier and Type | Method and Description |
---|---|
Gpio.Pin |
getVirtualPin(byte index)
Gets an object representing a virtual pin for data directed to it by the
Gpio.Analog.read(byte, byte, short, byte) method |
Gpio.Pin |
pin(byte index)
Retrieves a
Gpio.Pin object representing a physical GPIO pin |
static final byte UNUSED_READ_PIN
Gpio.Analog.read(byte, byte, short, byte)
static final byte UNUSED_READ_DELAY
Gpio.Analog.read(byte, byte, short, byte)
Gpio.Pin pin(byte index)
Gpio.Pin
object representing a physical GPIO pinindex
- Index to retrieveGpio.Pin getVirtualPin(byte index)
Gpio.Analog.read(byte, byte, short, byte)
methodindex
- Index the virtual pin is using