Interface PwmOutputDeviceInterface

    • Method Detail

      • getPwmNum

        int getPwmNum()
        Get the device PWM output device number
        Returns:
        Device native PWM output
      • setValue

        void setValue​(float value)
               throws RuntimeIOException
        Set the PWM output value (0..1)
        Parameters:
        value - Relative value in the range 0..1
        Throws:
        RuntimeIOException - if an I/O error occurs
      • getPwmFrequency

        int getPwmFrequency()
        Get the PWM frequency in Hz
        Returns:
        frequency in Hz
      • setPwmFrequency

        void setPwmFrequency​(int frequencyHz)
                      throws RuntimeIOException
        Set the PWM output frequency
        Parameters:
        frequencyHz - frequency in Hz
        Throws:
        RuntimeIOException - if an I/O error occurs