Class PwmExample


  • public class PwmExample
    extends Object

    This example code demonstrates how to setup a hardware supported PWM pin GpioProvider

    Author:
    Robert Savage
    • Constructor Detail

      • PwmExample

        public PwmExample()
    • 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