Class PwmExample
- java.lang.Object
-
- PwmExample
-
public class PwmExample extends Object
This example code demonstrates how to setup a hardware supported PWM pin GpioProvider
- Author:
- Robert Savage
-
-
Constructor Summary
Constructors Constructor Description PwmExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
main
public static void main(String[] args) throws InterruptedException
[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. If no argument is provided, then GPIO #1 will be used. -- EXAMPLE: "--pin 4" or "-p 0".- Parameters:
args
-- Throws:
InterruptedException
-
-