public interface ServoProvider
ServoDriver
objects.Modifier and Type | Method and Description |
---|---|
List<Pin> |
getDefinedServoPins()
This method returns a list of pins this provider implementation
can drive.
|
ServoDriver |
getServoDriver(Pin servoPin)
This method returns a
ServoDriver for asked pin. |
List<Pin> getDefinedServoPins() throws IOException
IOException
- in case there is an error providing list of pinsServoDriver getServoDriver(Pin servoPin) throws IOException
ServoDriver
for asked pin.
It may return IOException in case that driver does not know of asked
pin or cannot drive servo from it. Or there is any other initialization
error.servoPin
- pin driver is needed forIOException
- in case that servo driver cannnot be provided for asked pinCopyright © 2012–2014 Pi4J. All rights reserved.