<< Previous | Next >> | |
|
Description
- Disable drive to the second servo motor. This function only works if an auxiliary control signal is connected to the motor driver. The I/O pin used for this function is specified by the macros:
#define SERVO_ENABLE_PORT_1 PGDR
#define SERVO_ENABLE_PORTSHADOW_1 PGDRShadow
#define SERVO_ENABLE_PIN_1 7
- and, optionally,
#define SERVO_ENABLE_DDR_1 PGDDR
#define SERVO_ENABLE_DDRSHADOW_1 PGDDRShadow
#define SERVO_ENABLE_ACTIVEHIGH_1
- This function is limited to toggling the output pin. If enabling or disabling the servo motor requires more complicated actions, you can substitute your own function by defining
#define SERVO_DISABLE_1 yyyy
- where yyyy is the name of your own function (which is assumed to take no parameters and have no return value)
Library
- SERVO.LIB
See Also
- servo_enable_1
Dynamic C Functions | << Previous | Next >> | rabbit.com |