Package jpigpio.devices
Class Servo
java.lang.Object
jpigpio.devices.Servo
public class Servo
extends java.lang.Object
Control a servo at a high level.
- Create an instance of the Servo class passing in:
- pigpio
- gpio
- minVal
- maxVal
- Author:
- kolban
-
Constructor Details
-
Servo
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
-
setValue
Set a control value- Parameters:
value
- A value between the minimum and maximum values defined when the class was instantiated.- Throws:
PigpioException
-
stop
Stop being a servo- Throws:
PigpioException
-