Interface InternalPwmOutputDeviceInterface

    • Method Detail

      • getPwmNum

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

        float getValue()
                throws RuntimeIOException
        Get the percentage that the device is "on", range 0..1
        Returns:
        the percentage "on" time, range 0..1
        Throws:
        RuntimeIOException - if an I/O error occurs
      • setValue

        void setValue​(float value)
               throws RuntimeIOException
        Set the percentage relative "on" time, range 0..1
        Parameters:
        value - new "on" time, range 0..1
        Throws:
        RuntimeIOException - if an I/O error occurs
      • 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