Package | Description |
---|---|
org.firmata4j | |
org.firmata4j.firmata |
Modifier and Type | Method and Description |
---|---|
Pin.Mode |
Pin.getMode()
Returns current mode of the pin.
|
static Pin.Mode |
Pin.Mode.resolve(byte modeToken)
Resolves a mode-token from firmata message to enum value.
|
static Pin.Mode |
Pin.Mode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pin.Mode[] |
Pin.Mode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Set<Pin.Mode> |
Pin.getSupportedModes()
Returns a set of modes supported by the pin.
|
Modifier and Type | Method and Description |
---|---|
void |
Pin.setMode(Pin.Mode mode)
Assigns new mode to the pin.
|
boolean |
Pin.supports(Pin.Mode mode)
Checks if the pin supports the mode
|
Modifier and Type | Method and Description |
---|---|
Pin.Mode |
FirmataPin.getMode() |
Modifier and Type | Method and Description |
---|---|
Set<Pin.Mode> |
FirmataPin.getSupportedModes() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
FirmataMessageFactory.setMode(byte pinId,
Pin.Mode mode)
Creates the message that assigns particular mode to specified pin.
|
void |
FirmataPin.setMode(Pin.Mode mode) |
boolean |
FirmataPin.supports(Pin.Mode mode) |
Copyright © 2017. All rights reserved.