public class PwmExample extends Object
This example code demonstrates how to setup a hardware supported PWM pin GpioProvider
| Constructor and Description |
|---|
PwmExample() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
[ARGUMENT/OPTION "--pin (#)" | "-p (#)" ]
This example program accepts an optional argument for specifying the GPIO pin (by number)
to use with this GPIO listener example.
|
public static void main(String[] args) throws InterruptedException
args - InterruptedExceptionCopyright © 2012–2018 Pi4J. All rights reserved.