Class PwmOutputDevice

    • Constructor Detail

      • PwmOutputDevice

        public PwmOutputDevice​(int gpio)
                        throws RuntimeIOException
        Parameters:
        gpio - GPIO to which the output device is connected.
        Throws:
        RuntimeIOException - If an I/O error occurred.
      • PwmOutputDevice

        public PwmOutputDevice​(int gpio,
                               float initialValue)
                        throws RuntimeIOException
        Parameters:
        gpio - GPIO to which the output device is connected.
        initialValue - Initial output value (0..1).
        Throws:
        RuntimeIOException - If an I/O error occurred.
      • PwmOutputDevice

        public PwmOutputDevice​(int gpio,
                               int pwmFrequency,
                               float initialValue)
                        throws RuntimeIOException
        Parameters:
        gpio - GPIO to which the output device is connected.
        initialValue - Initial output value (0..1).
        pwmFrequency - PWM frequency (Hz).
        Throws:
        RuntimeIOException - If an I/O error occurred.
      • PwmOutputDevice

        public PwmOutputDevice​(PwmOutputDeviceFactoryInterface deviceFactory,
                               int gpio,
                               float initialValue)
                        throws RuntimeIOException
        Parameters:
        deviceFactory - Device factory to use to provision this device.
        gpio - GPIO to which the output device is connected.
        initialValue - Initial output value (0..1).
        Throws:
        RuntimeIOException - If an I/O error occurred.
      • PwmOutputDevice

        public PwmOutputDevice​(PwmOutputDeviceFactoryInterface deviceFactory,
                               int pwmOrGpioNum,
                               int pwmFrequency,
                               float initialValue)
                        throws RuntimeIOException
        Parameters:
        deviceFactory - Device factory to use to provision this device.
        pwmOrGpioNum - GPIO to which the output device is connected.
        pwmFrequency - PWM frequency (Hz).
        initialValue - Initial output value (0..1).
        Throws:
        RuntimeIOException - If an I/O error occurred.
      • PwmOutputDevice

        public PwmOutputDevice​(PwmOutputDeviceFactoryInterface deviceFactory,
                               PinInfo pinInfo,
                               int pwmFrequency,
                               float initialValue)
                        throws RuntimeIOException
        Parameters:
        deviceFactory - Device factory to use to provision this device.
        pinInfo - GPIO to which the output device is connected.
        pwmFrequency - PWM frequency (Hz).
        initialValue - Initial output value (0..1).
        Throws:
        RuntimeIOException - If an I/O error occurred.