Class Servo

java.lang.Object
jpigpio.devices.Servo

public class Servo
extends java.lang.Object
Control a servo at a high level.
  1. Create an instance of the Servo class passing in:
    • pigpio
    • gpio
    • minVal
    • maxVal
Author:
kolban
  • Constructor Summary

    Constructors 
    Constructor Description
    Servo​(JPigpio pigpio, int gpio, int minVal, int maxVal)
    Instantiate an instance of the servo class.
  • Method Summary

    Modifier and Type Method Description
    void setValue​(int value)
    Set a control value
    void stop()
    Stop being a servo

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Servo

      public Servo​(JPigpio pigpio, int gpio, int minVal, int maxVal)
      Instantiate an instance of the servo class.
      Parameters:
      pigpio - The pigpio object to work against.
      gpio - The gpio that is to be used to control the servo.
      minVal - The minimum value of a control value.
      maxVal - The maximum value of a control value.
  • Method Details