' ========================================================================= ' ' File....... Servo_Center.BS1 ' Purpose.... Moves a servo to its center posiition ' Updated.... 09 Apr 2006 ' ' {$STAMP BS1} ' {$PBASIC 1.0} ' ' ========================================================================= SYMBOL Servo = 0 SYMBOL ServoCenter = 150 'Servo center position - adjust as needed. Setup: DIRS = %00000001 ' servo is OUTPUt Center: PULSOUT Servo,ServoCenter ' This holds the servo in the "center" position PAUSE 20 ' Wait 1/50th second. GOTO Center