public interface ServoDriver
| Modifier and Type | Method and Description |
|---|---|
Pin |
getPin() |
int |
getServoPulseResolution()
This is read only value driver is to provide to users of this class.
|
int |
getServoPulseWidth()
This method returns current servo pulse width.
|
void |
setServoPulseWidth(int width)
Sets servo pulse width in resolution provided by
getServoPulseResolution(). |
int getServoPulseWidth()
void setServoPulseWidth(int width)
getServoPulseResolution().
Zero value may mean that this driver is currently not producing pulse.
Negative values may, generally, be invalid.width - pulse width in resolution read from getServoPulseResolution()int getServoPulseResolution()
getServoPulseWidth() and setServoPulseWidth(int)
methods are operating in. Resolution is provided in 1/n (ms) where value returned
from this method is n.Pin getPin()
Copyright © 2012–2019 Pi4J. All rights reserved.