| 
    Adafruit Library
    
   | 
 
Interface for WipperSnapper servo control. More...
#include <ws_servo.h>
Public Member Functions | |
| ~ws_servo () | |
| Destructor.  | |
| bool | servo_attach (int pin, int minPulseWidth, int maxPulseWidth, int freq) | 
| Attaches a servo object to a pin.  More... | |
| void | servo_detach (int pin) | 
| Detaches a servo from a pin and re-allocates the GPIO pin.  More... | |
| void | servo_write (int pin, int value) | 
| Writes a pulse width to a servo pin.  More... | |
| servoComponent * | getServoComponent (uint8_t pin) | 
| Attempts to get the servoComponent for the desired pin.  More... | |
Interface for WipperSnapper servo control.
| bool ws_servo::servo_attach | ( | int | pin, | 
| int | minPulseWidth, | ||
| int | maxPulseWidth, | ||
| int | freq | ||
| ) | 
Attaches a servo object to a pin.
| pin | Desired GPIO pin. | 
| minPulseWidth | Minimum pulsewidth, in uS. | 
| maxPulseWidth | Maximum pulsewidth, in uS. | 
| freq | Servo Frequency, default is 50Hz | 
| void ws_servo::servo_detach | ( | int | pin | ) | 
Detaches a servo from a pin and re-allocates the GPIO pin.
| pin | Desired GPIO pin. | 
| void ws_servo::servo_write | ( | int | pin, | 
| int | value | ||
| ) | 
Writes a pulse width to a servo pin.
| pin | Desired GPIO pin. | 
| value | Desired pulse width, in uS. | 
| servoComponent * ws_servo::getServoComponent | ( | uint8_t | pin | ) | 
Attempts to get the servoComponent for the desired pin.
| pin | Desired GPIO pin. | 
 1.8.13