Class GpioListenAllExample
- java.lang.Object
-
- GpioListenAllExample
-
public class GpioListenAllExample extends Object
This example code demonstrates how to setup a listener for all available GPIO pins on the RaspberryPi (by specific model).- Author:
- Robert Savage
-
-
Constructor Summary
Constructors Constructor Description GpioListenAllExample()
-
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
-
-