Class GpioInputAllExample
- java.lang.Object
-
- GpioInputAllExample
-
public class GpioInputAllExample extends Object
This example code demonstrates how to perform simple GPIO pin state reading on the RaspberryPi platform fro all pins.- Author:
- Robert Savage
-
-
Constructor Summary
Constructors Constructor Description GpioInputAllExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
[ARGUMENT/OPTION "--pull (up|down|off)" | "-l (up|down|off)" | "--up" | "--down" ] This example program accepts an optional argument for specifying pin pull resistance.
-
-
-
Method Detail
-
main
public static void main(String[] args) throws InterruptedException, PlatformAlreadyAssignedException, IOException
[ARGUMENT/OPTION "--pull (up|down|off)" | "-l (up|down|off)" | "--up" | "--down" ] This example program accepts an optional argument for specifying pin pull resistance. Supported values: "up|down" (or simply "1|0"). If no value is specified in the command argument, then the pin pull resistance will be set to PULL_UP by default. -- EXAMPLES: "--pull up", "-pull down", "--pull off", "--up", "--down", "-pull 0", "--pull 1", "-l up", "-l down".- Parameters:
args
-- Throws:
InterruptedException
PlatformAlreadyAssignedException
IOException
-
-