Class SoftPwmExample
- java.lang.Object
-
- SoftPwmExample
-
public class SoftPwmExample extends Object
This example code demonstrates how to setup a software emulated PWM pin using the RaspberryPi GPIO pins.
- Author:
- Robert Savage
-
-
Constructor Summary
Constructors Constructor Description SoftPwmExample()
-
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, PlatformAlreadyAssignedException
[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
PlatformAlreadyAssignedException
-
-