PiPan: this class provides functions for PiPan servo controller for read and write operations.
More...
|
int | ServoBlaster = 0 |
|
int | y = 0 |
|
PiPan: this class provides functions for PiPan servo controller for read and write operations.
def pipan.PiPan.__init__ |
( |
|
self | ) |
|
Initialize the class by opening servoblaster.
- Parameters
-
def pipan.PiPan.do_pan |
( |
|
self, |
|
|
|
x |
|
) |
| |
Writes pan movement value between 50 and 250.
- Parameters
-
def pipan.PiPan.neutral_pan |
( |
|
self | ) |
|
Brings the pan servo to neutral position.
- Parameters
-
def pipan.PiPan.neutral_tilt |
( |
|
self | ) |
|
Brings the tilt servo to neutral position.
- Parameters
-
def pipan.PiPan.pwm |
( |
|
self, |
|
|
|
pin, |
|
|
|
angle |
|
) |
| |
Writes a pwm value one of the servo controller pins.
- Parameters
-
self | The object pointer. |
pin | The servo number at which to write. |
angle | The angle to write to the desired pin. |
The documentation for this class was generated from the following file: