Class PwmServo

    • Method Detail

      • setInverted

        public PwmServo setInverted​(boolean inverted)
        Deprecated.
      • close

        public void close()
        Deprecated.
        Description copied from interface: DeviceInterface
        Close this device
      • getPwmFrequency

        public int getPwmFrequency()
        Deprecated.
      • getValue

        public float getValue()
        Deprecated.
      • setValue

        public void setValue​(float value)
        Deprecated.
      • getPulseWidthMs

        public float getPulseWidthMs()
        Deprecated.
        Get the current servo pulse width in milliseconds
        Returns:
        The servo pulse width (milliseconds)
      • setPulseWidthMs

        public void setPulseWidthMs​(float pulseWidthMs)
        Deprecated.
        Set the servo pulse width in milliseconds
        Parameters:
        pulseWidthMs - Servo pulse width (milliseconds)
      • getAngle

        public float getAngle()
        Deprecated.
        Get the current servo angle where 90 degrees is the middle position
        Returns:
        Servo angle (90 degrees is middle)
      • setAngle

        public void setAngle​(int angle)
        Deprecated.
        Turn the servo to the specified angle where 90 is the middle position
        Parameters:
        angle - Servo angle (90 degrees is middle)
      • min

        public void min()
        Deprecated.
      • max

        public void max()
        Deprecated.
      • centre

        public void centre()
        Deprecated.