<< Previous | Next >> | |
|
Description
- Enable 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 high or low. If enabling or disabling the servo motor requires more complicated actions, you can substitute your own function by defining
#define SERVO_ENABLE_1 xxxx
- where xxxx 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_disable_1
Dynamic C Functions | << Previous | Next >> | rabbit.com |