servo control functions are provided in the libraries

LIB/servo_lib.bas


 
Servo subsystem description  
servo_init Initialises the servo subsystem
servo_define Define a specific port bit to be used as a servo output by the servo subsystem
servo_set_pulse Set servo position
servo_get_pulse Get servo position
servo_service Service all servos in the servo subsystem