Package com.kosdev.kos.core.service.gpio
Class GpioService
java.lang.Object
com.kosdev.kos.core.service.gpio.GpioService
This service provides a way to interact with GPIO pins on the main cpu board.
The GPIO adapter needs to be spawned which will then connect a session to this
service.
- Since:
- 9
- Version:
- 9
-
Method Summary
Modifier and TypeMethodDescriptioncreateInputPin(NodeId nodeId, GpioInputPinDef def) Create an input pin on the specified node.Create an input pin on the local node.createOutputPin(NodeId nodeId, GpioOutputPinDef def) Create an output pin on the specified node.Create an output pin on the local node.voidRemove the specified pin.
-
Method Details
-
createInputPin
Create an input pin on the local node.- Parameters:
def- the input pin definition- Since:
- 9
-
createInputPin
Create an input pin on the specified node.- Parameters:
nodeId- id of the node to create the pin ondef- the input pin definition- Since:
- 9
-
createOutputPin
Create an output pin on the local node.- Parameters:
def- the output pin definition- Since:
- 9
-
createOutputPin
Create an output pin on the specified node.- Parameters:
nodeId- id of the node to create the pin ondef- the output pin definition- Since:
- 9
-
removePin
Remove the specified pin.- Parameters:
pin- the pin to remove- Since:
- 9
-