public interface IPinService
Modifier and Type | Method and Description |
---|---|
Gpio.Value |
digitalRead(Gpio.Number pinName)
Returns specified pin's value.
|
boolean |
digitalWrite(Gpio.Number pinName,
Gpio.Value pinValue)
Sets value of specified gpio pin.
|
boolean |
exportPin(Gpio.Number pinName)
Exports pin to user space.
|
Gpio.Mode |
getPinMode(Gpio.Number pinName)
Returns pin mode.
|
boolean |
isPinExported(Gpio.Number pinName)
Returns pin export status.
|
boolean |
isPinInput(Gpio.Number pinName)
Returns gpio pin input state.
|
boolean |
isPinOutput(Gpio.Number pinName)
Returns gpio pin output state.If pin is OUTPUT returns true.
|
boolean |
setPinMode(Gpio.Number pinName,
Gpio.Mode pinMode)
Sets mode of specified gpio pin.
|
boolean |
unexportPin(Gpio.Number pinName)
Unexports pin from user space.
|
Gpio.Value digitalRead(Gpio.Number pinName)
pinName
- boolean exportPin(Gpio.Number pinName)
pinName
- boolean unexportPin(Gpio.Number pinName)
pinName
- boolean isPinExported(Gpio.Number pinName)
pinName
- boolean digitalWrite(Gpio.Number pinName, Gpio.Value pinValue)
pinName
- pinValue
- boolean setPinMode(Gpio.Number pinName, Gpio.Mode pinMode)
pinName
- pinMode
- Gpio.Mode getPinMode(Gpio.Number pinName)
pinName
- boolean isPinOutput(Gpio.Number pinName)
pinName
- boolean isPinInput(Gpio.Number pinName)
pinName
-