public class SoftPwmExample extends Object
This example code demonstrates how to setup a software emulated PWM pin using the Odroid C1/C1+ GPIO pins.
| Constructor and Description |
|---|
SoftPwmExample() |
| 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, PlatformAlreadyAssignedException
args - InterruptedExceptionPlatformAlreadyAssignedExceptionCopyright © 2012–2018 Pi4J. All rights reserved.